This commit is contained in:
jvcalderon 2024-03-28 12:04:27 +01:00
parent b77106480e
commit af2407e8cd
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ export const addSsoSupport = async (ctx: Ctx<AddSSoUserRequest>) => {
const { email, ssoId } = ctx.request.body
try {
// Status is changed to 404 from getUserDoc if user is not found
let userByEmail = (await platform.users.getUserDoc(email)) as PlatformUserByEmail
let userByEmail = (await platform.users.getUserDoc(
email
)) as PlatformUserByEmail
await platform.users.addSsoUser(
ssoId,
email,