From ac9c10393f0f0c40270285bb7b3c206a95eb5f2d Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Fri, 6 May 2022 12:07:03 +0200 Subject: [PATCH] feat(api): fixed return createdAt with the list of users --- api/chalicelib/core/users.py | 2 +- ee/api/chalicelib/core/users.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/chalicelib/core/users.py b/api/chalicelib/core/users.py index 0ef2f2088..40cc0f7db 100644 --- a/api/chalicelib/core/users.py +++ b/api/chalicelib/core/users.py @@ -394,7 +394,7 @@ def get_members(tenant_id): if len(r): r = helper.list_to_camel_case(r) for u in r: - r["createdAt"] = TimeUTC.datetime_to_timestamp(r["createdAt"]) + u["createdAt"] = TimeUTC.datetime_to_timestamp(u["createdAt"]) if u["invitationToken"]: u["invitationLink"] = __get_invitation_link(u.pop("invitationToken")) else: diff --git a/ee/api/chalicelib/core/users.py b/ee/api/chalicelib/core/users.py index d34e2f5f9..cf2a808e7 100644 --- a/ee/api/chalicelib/core/users.py +++ b/ee/api/chalicelib/core/users.py @@ -436,7 +436,7 @@ def get_members(tenant_id): if len(r): r = helper.list_to_camel_case(r) for u in r: - r["createdAt"] = TimeUTC.datetime_to_timestamp(r["createdAt"]) + u["createdAt"] = TimeUTC.datetime_to_timestamp(u["createdAt"]) if u["invitationToken"]: u["invitationLink"] = __get_invitation_link(u.pop("invitationToken")) else: