fix(aurora): ignore moderation cases where the moderation_id is 0
This commit is contained in:
parent
641f45d126
commit
1990b97518
1 changed files with 3 additions and 1 deletions
|
@ -231,7 +231,9 @@ class Moderation(AuroraGuildModel):
|
||||||
if results:
|
if results:
|
||||||
cases = []
|
cases = []
|
||||||
for result in results:
|
for result in results:
|
||||||
cases.append(cls.from_result(bot, result, guild_id))
|
case = cls.from_result(bot, result, guild_id)
|
||||||
|
if case.moderation_id != 0:
|
||||||
|
cases.append(case)
|
||||||
return cases
|
return cases
|
||||||
|
|
||||||
return []
|
return []
|
||||||
|
|
Loading…
Reference in a new issue