Fix weekly randomizer when standup channel have less than 4 people
parent
4a741d03d3
commit
fb689298c7
|
@ -42,6 +42,10 @@ const standupMembers = await Promise.all(
|
|||
)
|
||||
)
|
||||
|
||||
while (standupMembers.length > 0 && standupMembers.length < 4) {
|
||||
standupMembers.push(...standupMembers)
|
||||
}
|
||||
|
||||
const shuffleMembers = shuffleArray(standupMembers)
|
||||
|
||||
await mongo.setWeeklyTeamOrder(shuffleMembers.map(({ id }) => id))
|
||||
|
|
Loading…
Reference in New Issue