Rename count
to numMessagesPerBatch
This commit is contained in:
parent
38ac9972e8
commit
12cdeee7ec
2 changed files with 37 additions and 13 deletions
|
@ -90,12 +90,13 @@
|
|||
storage.fetch();
|
||||
|
||||
const idleDetector = new IdleDetector();
|
||||
|
||||
idleDetector.on('idle', async () => {
|
||||
const NUM_MESSAGES_PER_BATCH = 1;
|
||||
const database = Migrations0DatabaseWithAttachmentData.getDatabase();
|
||||
const batch = await MessageDataMigrator.processNextBatchWithoutIndex({
|
||||
databaseName: database.name,
|
||||
minDatabaseVersion: database.version,
|
||||
numMessagesPerBatch: NUM_MESSAGES_PER_BATCH,
|
||||
upgradeMessageSchema,
|
||||
});
|
||||
console.log('Upgrade message schema:', batch);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue