Skip to content

Commit

Permalink
Merge pull request #17 from talkincheap/top
Browse files Browse the repository at this point in the history
fix(top): If a user was deleted, their weekly progress was not counted
  • Loading branch information
xmnlz authored Jul 26, 2024
2 parents 664830b + df4b71b commit ae7de2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/eventsmode/top.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class Command {
SELECT sum(eventsmode.weekly_time) as "totalTime"
FROM public.eventsmode
LEFT JOIN guild ON eventsmode.guild_id = guild.id
WHERE eventsmode.guild_id = $1 AND eventsmode.is_hired = TRUE
WHERE eventsmode.guild_id = $1
`,
[ctx.guild.id],
);
Expand Down

0 comments on commit ae7de2b

Please sign in to comment.