Skip to content

Commit

Permalink
fix: override received message if already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianIOHK committed Jul 27, 2023
1 parent f00b53a commit 2db362e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CREATE TABLE Message (
);

insert:
INSERT OR IGNORE INTO Message(id, createdTime, dataJson, `from`, thid, `to`, type, isReceived)
INSERT OR REPLACE INTO Message(id, createdTime, dataJson, `from`, thid, `to`, type, isReceived)
VALUES ?;

fetchAllMessages:
Expand Down

0 comments on commit 2db362e

Please sign in to comment.