Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

markchatasread on empty conversation returns an error #769

Open
jjeffryes opened this issue Nov 21, 2017 · 0 comments
Open

markchatasread on empty conversation returns an error #769

jjeffryes opened this issue Nov 21, 2017 · 0 comments
Assignees
Labels

Comments

@jjeffryes
Copy link
Collaborator

When http://localhost:4002/ob/markchatasread?subject=QmZw2nQa9KKR8LnVMoKdJL7nPDGd7PA85hYMrpZuqS4TYd is called on a conversation with no messages, it returns a 500 status with the following response:

{
    "success": false,
    "reason": "sql: Scan error on column index 0: converting driver.Value type \u003cnil\u003e ('\u003cnil\u003e') to a int: invalid syntax"
}

It should return a 200 status with an empty response.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants