Commit the batch without results

This commit is contained in:
Vishnu Mohandas 2021-05-07 02:01:21 +05:30
parent 9935b433dc
commit dda96457b2

View file

@ -144,7 +144,7 @@ class FilesDB {
int batchCounter = 0;
for (File file in files) {
if (batchCounter == 400) {
await batch.commit();
await batch.commit(noResult: true);
batch = db.batch();
batchCounter = 0;
}