From dd9d00ec8d49c8e8ff25e0c4c544000a1ae47e2c Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Wed, 4 Jan 2023 18:30:28 +0800 Subject: [PATCH] Linting fixes, wait on email send --- packages/import-handler/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/import-handler/src/index.ts b/packages/import-handler/src/index.ts index 054af1ee0..ff7b63ae0 100644 --- a/packages/import-handler/src/index.ts +++ b/packages/import-handler/src/index.ts @@ -62,15 +62,15 @@ const importCompletedTask = async (userId: string, urlsEnqueued: number) => { } const exp = Math.floor(Date.now() / 1000) + 60 * 60 * 24 // 1 day - const authToken = await signToken( + const authToken = (await signToken( { uid: userId, exp }, process.env.JWT_SECRET - ) + )) as string const headers = { Authorization: `auth=${authToken}`, } - createCloudTask( + return createCloudTask( { userId, subject: 'Your Omnivore import has completed processing',