Merge pull request #2116 from omnivore-app/fix/save-url

Fix save url error when uid is not in the apollo context
This commit is contained in:
Hongbo Wu 2023-04-25 17:22:34 +08:00 committed by GitHub
commit d08a7d8770
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ export const saveUrlResolver = authorized<
return { errorCodes: [SaveErrorCode.Unauthorized] }
}
return (await saveUrl(ctx, user, input)) as SaveSuccess
return (await saveUrl({ ...ctx, uid }, user, input)) as SaveSuccess
})
export const saveFileResolver = authorized<