mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Make function more clear
This commit is contained in:
parent
ee50b237c6
commit
fa866f1d29
1 changed files with 3 additions and 3 deletions
|
|
@ -191,10 +191,10 @@ const handleEvent = async (data: StorageEvent) => {
|
|||
|
||||
await handler(ctx, stream)
|
||||
|
||||
if (ctx.countImported <= 1) {
|
||||
await sendImportFailedEmail(userId)
|
||||
} else {
|
||||
if (ctx.countImported > 0) {
|
||||
await sendImportCompletedEmail(userId, ctx.countImported, ctx.countFailed)
|
||||
} else {
|
||||
await sendImportFailedEmail(userId)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue