Skip to content

Commit

Permalink
Fix status checks in list moderation cases admin action. (#8182)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Oct 24, 2024
1 parent 5860af7 commit fb404ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/admin/actions/moderation_case_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ List ModerationCase entities with filter options.
}

final list = await query.run().where((mc) {
if (status == 'pending' && mc.status != ModerationStatus.pending) {
if (status == 'resolved' && mc.status == ModerationStatus.pending) {
return false;
}
if (status == 'resolved' && mc.status == ModerationStatus.pending) {
if (status != null && status != 'resolved' && mc.status != status) {
return false;
}
if (kind != null && mc.kind != kind) {
Expand Down

0 comments on commit fb404ee

Please sign in to comment.