Skip to content

Commit 7101e7a

Browse files
committed
#74 avoid copying otherSpeakers' talks to limit size of speakers-allInOne doc
1 parent 8ced025 commit 7101e7a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cloud/functions/src/models/Event.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@ export function detailedTalksToSpeakersLineup(talks: DetailedTalk[]): LineupSpea
5151
start: talk.allocation.start,
5252
end: talk.allocation.end,
5353
} : null,
54-
otherSpeakers: talk.speakers.filter(sp => sp.id !== speaker.id),
54+
otherSpeakers: talk.speakers.filter(sp => sp.id !== speaker.id)
55+
.map(speaker => ({
56+
id: speaker.id,
57+
fullName: speaker.fullName,
58+
photoUrl: speaker.photoUrl,
59+
companyName: speaker.companyName,
60+
bio: speaker.bio,
61+
social: speaker.social,
62+
})),
5563
})
5664
})
5765
}

0 commit comments

Comments
 (0)