Merge pull request #439 from metal0/typeorm-counters

fix: typeorm counters missing "where" from new typeorm update
This commit is contained in:
Miikka 2023-12-22 23:49:10 +02:00 committed by GitHub
commit fdefca17ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -285,7 +285,11 @@ export class GuildCounters extends BaseGuildRepository {
reverse_comparison_value: reverseComparisonValue, reverse_comparison_value: reverseComparisonValue,
}); });
return (await entityManager.findOne(CounterTrigger, insertResult.identifiers[0].id))!; return (await entityManager.findOne(CounterTrigger, {
where: {
id: insertResult.identifiers[0].id
}
}))!;
}); });
} }