fix(FN-4739): coerce sqlite delete changes count to number
Fusion-Task-Id: FN-4739 Fusion-Task-Lineage: fc120dfa-d1b2-4065-9595-d0bc6304d2af
This commit is contained in:
committed by
gsxdsm
parent
a5eba7dfdb
commit
a4433cd09f
@@ -1036,7 +1036,7 @@ export class ChatStore extends EventEmitter<ChatStoreEvents> {
|
||||
}
|
||||
|
||||
const deleted = this.db.prepare("DELETE FROM chat_room_messages WHERE roomId = ?").run(roomId);
|
||||
const deletedCount = deleted.changes;
|
||||
const deletedCount = Number(deleted.changes);
|
||||
if (deletedCount <= 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user