Rebase fix + check GRIST_SCIM_USER

This commit is contained in:
fflorent
2024-09-06 19:11:13 +02:00
parent 9c81ddbba9
commit 4ba322d1cb
2 changed files with 20 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ const buildScimRouterv2 = (dbManager: HomeDBManager, installAdmin: InstallAdmin)
const newUser = await dbManager.getUserByLoginWithRetry(userProfileToInsert.email, {
profile: userProfileToInsert
});
return toSCIMMYUser(newUser!);
return toSCIMMYUser(newUser);
} catch (ex) {
if (ex instanceof ApiError) {
if (ex.status === 409) {