From 90b338f7e4f394423029f9c5085a9e41c47923cf Mon Sep 17 00:00:00 2001 From: Hugo Renard Date: Thu, 17 Mar 2022 11:09:39 +0100 Subject: [PATCH] fix active value --- src/scim/User.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scim/User.ts b/src/scim/User.ts index 5d903a2..2e0ea4a 100644 --- a/src/scim/User.ts +++ b/src/scim/User.ts @@ -23,8 +23,8 @@ export class SCIMUser implements ISCIMResource { user.userName = rc.username; user.meta.created = new Date(rc.createdAt); user.meta.lastModified = new Date(rc.createdAt); - if (user.active !== undefined) { - user.active = user.active; + if (rc.active !== undefined) { + user.active = rc.active; } return user; }