Handle case where import has a single entry

This commit is contained in:
Jackson Harper 2023-01-06 12:49:29 +08:00
parent ddda9de85b
commit 592c7150a7

View file

@ -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)