mirror of
https://github.com/tinode/chat.git
synced 2026-06-06 20:18:25 +00:00
Merge pull request #955 from ercsnmrs/fix/postgres-adapter-and-panics
fix/postgres and topic function
This commit is contained in:
@@ -2460,7 +2460,7 @@ func (a *adapter) FindOne(tag string) (string, error) {
|
||||
err = rows.Err()
|
||||
}
|
||||
|
||||
return "", err
|
||||
return found, err
|
||||
}
|
||||
|
||||
// Messages
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user