feat(api): fixed return createdAt with the list of users
This commit is contained in:
parent
ef0edebb3d
commit
ac9c10393f
2 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue