Skip to content

Commit

Permalink
Update brainiac query
Browse files Browse the repository at this point in the history
  • Loading branch information
gausie committed Sep 17, 2024
1 parent f52ad09 commit 0de0380
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/oaf/src/commands/clan/brains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ export async function execute(interaction: ChatInputCommandInteraction) {
);

const players = await prisma.player.findMany({
where: { OR: [{ brainiac: true }, { skills: { gt: 0 } }] },
where: {
OR: [
{ brainiac: true },
{ raidParticipation: { some: { skills: { gt: 0 } } } },
],
},
});

const playerNameUpdates: PrismaPromise<Player>[] = [];
Expand Down

0 comments on commit 0de0380

Please sign in to comment.