Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #276 from beabee-communityrm/feat/callout-response…
Browse files Browse the repository at this point in the history
…-guest

feat: add response guest name/email to API response
  • Loading branch information
wpf500 authored Jun 26, 2023
2 parents 72392d9 + 8375f7e commit 92427c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/data/CalloutResponseData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ function convertResponseToData(
createdAt: response.createdAt,
updatedAt: response.updatedAt,
bucket: response.bucket,
guestName: response.guestName,
guestEmail: response.guestEmail,
...(_with?.includes(GetCalloutResponseWith.Answers) && {
answers: response.answers
}),
Expand Down
2 changes: 2 additions & 0 deletions src/api/data/CalloutResponseData/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export interface GetCalloutResponseData {
createdAt: Date;
updatedAt: Date;
bucket: string;
guestName: string | null;
guestEmail: string | null;
answers?: CalloutResponseAnswers;
callout?: GetCalloutData;
contact?: GetContactData | null;
Expand Down

0 comments on commit 92427c5

Please sign in to comment.