Flush last conversation message save on shutdown
This commit is contained in:
parent
0ccbf5e4bd
commit
42108c9ca9
3 changed files with 35 additions and 8 deletions
|
@ -3133,8 +3133,10 @@ function removeUnprocessedSync(id: string | Array<string>): void {
|
|||
return;
|
||||
}
|
||||
|
||||
// This can happen normally due to flushing of `cacheRemoveBatcher` in
|
||||
// MessageReceiver.
|
||||
if (!id.length) {
|
||||
throw new Error('removeUnprocessedSync: No ids to delete!');
|
||||
return;
|
||||
}
|
||||
|
||||
assertSync(batchMultiVarQuery(db, id, removeUnprocessedsSync));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue