We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10c6f80 commit 103ff7fCopy full SHA for 103ff7f
ts/data/data.ts
@@ -491,10 +491,10 @@ async function removeAllMessagesInConversation(conversationId: string): Promise<
491
492
let messages;
493
do {
494
- // Yes, we really want the await in the loop. We're deleting 500 at a
495
- // time so we don't use too much memory.
+ // Yes, we really want the await in the loop. We're deleting 5000 at a
+ // time so we don't use too much memory.
496
// eslint-disable-next-line no-await-in-loop
497
- messages = await getLastMessagesByConversation(conversationId, 1000, false);
+ messages = await getLastMessagesByConversation(conversationId, 5000, false);
498
if (!messages.length) {
499
return;
500
}
0 commit comments