Skip to content

Commit

Permalink
Fixed 'winners' function not sending right message when ending week
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyQuetzals committed Apr 30, 2024
1 parent 83385ab commit 46a3904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/subcommands/week/end.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const closeRMFPWeek = async (week: Week, client: Client) => {

console.log(`[Close RMFP Week] RMFP Owners found: ${rmfpOwnerRole.members.size}`);

const winners = await prisma.week.winners(week.number);
const winners = await prisma.week.winners(week.id);
const content = [
`The winner(s) of RMFP S${week.seasonNumber}W${week.number} are:`,
...winners.map((winner, idx) => `${idx + 1}. <@${winner.userId}>'s [message](${winner.messageUrl})`),
Expand Down

0 comments on commit 46a3904

Please sign in to comment.