Fix save url error when uid is not in the apollo context

This commit is contained in:
Hongbo Wu
2023-04-25 17:01:25 +08:00
parent 29da91e760
commit 692fd7b959

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<