Skip to content
Snippets Groups Projects
Commit 1b8528d5 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Make sure the message to insert is set

parent 5774e53f
No related branches found
No related tags found
2 merge requests!60Revert "Fail a test to be sure it works",!10Make the message id index unique
...@@ -168,7 +168,9 @@ func (w *wasmModel) ReceiveMessage(channelID *id.ID, ...@@ -168,7 +168,9 @@ func (w *wasmModel) ReceiveMessage(channelID *id.ID,
jww.DEBUG.Printf("non-empty messageID detected") jww.DEBUG.Printf("non-empty messageID detected")
uuid, err := w.msgIDLookup(messageID) uuid, err := w.msgIDLookup(messageID)
if err == nil && uuid != 0 { if err == nil && uuid != 0 {
jww.WARN.Printf("MessageID found: %d", uuid) jww.WARN.Printf("found MessageID, will upsert: %d",
uuid)
msgToInsert.ID = uuid
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment