Remove last processed index after attachment migration

This commit is contained in:
Daniel Gasienica 2018-03-28 17:12:51 -04:00
parent 696a144ab7
commit 08f73b8420
2 changed files with 11 additions and 7 deletions

View file

@ -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();