From 592c7150a7a1323df52980a54cb48d0efcea260a Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 6 Jan 2023 12:49:29 +0800 Subject: [PATCH] Handle case where import has a single entry --- packages/import-handler/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/import-handler/src/index.ts b/packages/import-handler/src/index.ts index 377603740..0b37cab30 100644 --- a/packages/import-handler/src/index.ts +++ b/packages/import-handler/src/index.ts @@ -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)