Skip to content

Commit

Permalink
fix: endTeamPrompt bugs (#10295)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <[email protected]>
  • Loading branch information
mattkrick authored Oct 4, 2024
1 parent 55a7978 commit d18a7a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ const summarizeTeamPrompt = async (meeting: TeamPromptMeeting, context: Internal
const r = await getRethink()

const summary = await generateStandupMeetingSummary(meeting, dataLoader)
await pg.updateTable('NewMeeting').set({summary}).where('id', '=', meeting.id).execute()
if (summary) {
await pg.updateTable('NewMeeting').set({summary}).where('id', '=', meeting.id).execute()
}
await r
.table('NewMeeting')
.get(meeting.id)
Expand Down
3 changes: 2 additions & 1 deletion packages/server/graphql/public/types/MeetingSeries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const MeetingSeries: MeetingSeriesResolvers = {
return MeetingSeriesId.join(id)
},
activeMeetings: async (meetingSeries, _args, {dataLoader}) => {
return dataLoader.get('activeMeetingsByMeetingSeriesId').load(meetingSeries.id)
const res = await dataLoader.get('activeMeetingsByMeetingSeriesId').load(meetingSeries.id)
return res || []
},
mostRecentMeeting: async ({id: meetingSeriesId}, _args, _context) => {
const r = await getRethink()
Expand Down

0 comments on commit d18a7a4

Please sign in to comment.