From a6bc5a48505ccbe13a5d9dbcce4e32cac2cdd4d5 Mon Sep 17 00:00:00 2001 From: Marshall Sorenson Date: Thu, 19 Oct 2023 10:35:21 -0400 Subject: [PATCH] fix(invitation): get user response does not need username --- .../nestjs-invitation/src/services/invitation-send.service.ts | 2 +- .../interfaces/invitation-get-user-event-response.interface.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/nestjs-invitation/src/services/invitation-send.service.ts b/packages/nestjs-invitation/src/services/invitation-send.service.ts index 143095c3a..0e7443d6c 100644 --- a/packages/nestjs-invitation/src/services/invitation-send.service.ts +++ b/packages/nestjs-invitation/src/services/invitation-send.service.ts @@ -70,7 +70,7 @@ export class InvitationSendService { }), ); - const user = eventResult?.find((it) => it.id && it.username && it.email); + const user = eventResult?.find((it) => it.id && it.email); if (!user) { throw new InvitationUserUndefinedException(); diff --git a/packages/ts-common/src/invitation/interfaces/invitation-get-user-event-response.interface.ts b/packages/ts-common/src/invitation/interfaces/invitation-get-user-event-response.interface.ts index 9e3e47afb..8c8cd4129 100644 --- a/packages/ts-common/src/invitation/interfaces/invitation-get-user-event-response.interface.ts +++ b/packages/ts-common/src/invitation/interfaces/invitation-get-user-event-response.interface.ts @@ -1,10 +1,8 @@ import { ReferenceEmailInterface, ReferenceIdInterface, - ReferenceUsernameInterface, } from '@concepta/ts-core'; export interface InvitationGetUserEventResponseInterface extends ReferenceIdInterface, - ReferenceUsernameInterface, ReferenceEmailInterface {}