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