Merge pull request #955 from ercsnmrs/fix/postgres-adapter-and-panics

fix/postgres and topic function
This commit is contained in:
Gene
2025-06-27 09:01:54 +03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2460,7 +2460,7 @@ func (a *adapter) FindOne(tag string) (string, error) {
err = rows.Err()
}
return "", err
return found, err
}
// Messages
+1 -1
View File
@@ -2450,7 +2450,7 @@ func (t *Topic) replyGetSub(sess *Session, asUid types.Uid, authLevel auth.Level
if query == "" {
// Query parsing error or no query. Report it externally as a generic ErrMalformed.
sess.queueOut(ErrMalformedReply(msg, now))
return errors.New("failed to parse search query; " + err.Error())
return errors.New("failed to parse search query; err is nil")
}
query, subs, err = pluginFind(asUid, query)