mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Linting fixes, wait on email send
This commit is contained in:
parent
d89a307aca
commit
dd9d00ec8d
1 changed files with 3 additions and 3 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue