Skip to content

Commit

Permalink
updates partner admin interface and user payload formatter to provide…
Browse files Browse the repository at this point in the history
… 'active' property (#445)
  • Loading branch information
haydnba authored Jun 4, 2024
1 parent 1242788 commit 19a0709
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/partner-admin/partner-admin.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface IPartnerAdmin {
updatedAt?: Date | string;
userId?: string;
partnerId?: string;
active?: boolean;
}

export interface IPartnerAdminWithPartner extends IPartnerAdmin {
Expand Down
1 change: 1 addition & 0 deletions src/utils/serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const formatUserObject = (userObject: UserEntity): GetUserDto => {
partnerAdmin: userObject.partnerAdmin
? {
id: userObject.partnerAdmin.id,
active: userObject.partnerAdmin.active,
createdAt: userObject.partnerAdmin.createdAt,
updatedAt: userObject.partnerAdmin.updatedAt,
partner: formatPartnerObject(userObject.partnerAdmin.partner),
Expand Down

0 comments on commit 19a0709

Please sign in to comment.