mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
[local-sync] fix duplicate ensure in sent folder
This commit is contained in:
parent
a5fec9e7a8
commit
cd1548ac26
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ export async function getNewSyncbackTasks({db, account} = {}) {
|
||||||
.map((req) => SyncbackTaskFactory.create(account, req))
|
.map((req) => SyncbackTaskFactory.create(account, req))
|
||||||
const tasks = await SyncbackRequest.findAll({
|
const tasks = await SyncbackRequest.findAll({
|
||||||
limit: 100,
|
limit: 100,
|
||||||
where: {type: {$notIn: SendTaskTypes}, status: 'NEW'},
|
where: {type: {$notIn: [...SendTaskTypes, 'EnsureMessageInSentFolder']}, status: 'NEW'},
|
||||||
order: [['createdAt', 'ASC']],
|
order: [['createdAt', 'ASC']],
|
||||||
})
|
})
|
||||||
.map((req) => SyncbackTaskFactory.create(account, req))
|
.map((req) => SyncbackTaskFactory.create(account, req))
|
||||||
|
|
Loading…
Reference in a new issue