mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Merge pull request #439 from metal0/typeorm-counters
fix: typeorm counters missing "where" from new typeorm update
This commit is contained in:
commit
fdefca17ae
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
}
|
||||||
|
}))!;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue