Skip to content

Commit

Permalink
Re-add subscriptionId (WIP) #716
Browse files Browse the repository at this point in the history
  • Loading branch information
caebr committed Dec 12, 2024
1 parent 9448a37 commit ca79a4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/events/services/events-students-state.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export type StudentEntries = {

export type StudentEntry = {
id: number;
subscriptionId?: number;
firstName: string;
lastName: string;
email?: string;
Expand Down
2 changes: 2 additions & 0 deletions src/app/events/utils/events-students.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export function convertPersonsToStudentEntries(
(person) =>
({
id: person.Id,
subscriptionId: subscriptions.find((s) => s.PersonId === person.Id)
?.Id,
firstName: person.FirstName,
lastName: person.LastName,
email: person.DisplayEmail ?? undefined,
Expand Down

0 comments on commit ca79a4f

Please sign in to comment.