From 48d56965522cd4e95d162b161c2957a8ecfd6fb6 Mon Sep 17 00:00:00 2001 From: Tiago R Date: Fri, 22 Dec 2023 20:21:22 +0000 Subject: [PATCH] add missing "where" Signed-off-by: GitHub --- backend/src/data/GuildCounters.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/src/data/GuildCounters.ts b/backend/src/data/GuildCounters.ts index 4e69857b3..fc853367c 100644 --- a/backend/src/data/GuildCounters.ts +++ b/backend/src/data/GuildCounters.ts @@ -285,7 +285,11 @@ export class GuildCounters extends BaseGuildRepository { reverse_comparison_value: reverseComparisonValue, }); - return (await entityManager.findOne(CounterTrigger, insertResult.identifiers[0].id))!; + return (await entityManager.findOne(CounterTrigger, { + where: { + id: insertResult.identifiers[0].id + } + }))!; }); }