Remove last processed index after attachment migration
This commit is contained in:
parent
696a144ab7
commit
08f73b8420
2 changed files with 11 additions and 7 deletions
|
@ -179,6 +179,7 @@ exports.processAll = async ({
|
|||
} while (unprocessedMessages.length > 0);
|
||||
|
||||
await settings.markAttachmentMigrationComplete(connection);
|
||||
await settings.deleteAttachmentMigrationLastProcessedIndex(connection);
|
||||
|
||||
console.log('Close database connection');
|
||||
connection.close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue