Skip to content

Commit

Permalink
fix: reset retro group safely (#10431)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <matt.krick@gmail.com>
  • Loading branch information
mattkrick authored Oct 31, 2024
1 parent 4f515ea commit f10b58e
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,14 @@ const resetRetroMeetingToGroupStage = {
.where('discussionId', 'in', discussionIdsToDelete)
.execute()
}
if (reflectionGroupIds.length > 0) {
await pg
.updateTable('RetroReflectionGroup')
.set({voterIds: [], discussionPromptQuestion: null})
.where('id', 'in', reflectionGroupIds)
.execute()
}
await pg
.with('ResetGroups', (qb) =>
qb
.updateTable('RetroReflectionGroup')
.set({voterIds: [], discussionPromptQuestion: null})
.where('id', 'in', reflectionGroupIds)
)
.with('ResetMeetingMember', (qb) =>
qb
.updateTable('MeetingMember')
Expand Down

0 comments on commit f10b58e

Please sign in to comment.