fix errors and beautify with use of class
This commit is contained in:
1 parent
f7c95b3a36
commit
ffcfc57bbe
4 files changed
+31
-49
No files matched your search
@@ -19,7 +19,7 @@ export async function deleteFlag(messageId: number, flagId: number) {
|
||||
|
||||
export async function updateMailboxSeen(messageId: number, isSeen: boolean) {
|
||||
const query = `UPDATE mailbox_message SET seen = ? WHERE message_id = ?`;
|
||||
const values = [messageId, isSeen];
|
||||
const values = [isSeen, messageId];
|
||||
return await execQueryAsync(query, values);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user