mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #1623 from omnivore-app/fix/import-handler-off-by-one
Handle case where import has a single entry
This commit is contained in:
commit
982bfe586c
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ export const importHandler: EventFunction = async (event, context) => {
|
|||
}
|
||||
})
|
||||
|
||||
if (countImported < 1) {
|
||||
if (countImported <= 1) {
|
||||
await sendImportFailedEmail(userId)
|
||||
} else {
|
||||
await sendImportCompletedEmail(userId, countImported, countFailed)
|
||||
|
|
|
|||
Loading…
Reference in a new issue