Skip to content

Commit

Permalink
🐛 Fix appealed param's usage (bluesky-social#2777)
Browse files Browse the repository at this point in the history
🐛 Depend on false value instead of null since the input is sent through GET request for queryStatuses
  • Loading branch information
foysalit authored Sep 2, 2024
1 parent bfbac24 commit 8252c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ozone/src/mod-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ export class ModerationService {
cursor?: string
limit?: number
takendown?: boolean
appealed?: boolean | null
appealed?: boolean
reviewedBefore?: string
reviewState?: ModerationSubjectStatusRow['reviewState']
reviewedAfter?: string
Expand Down Expand Up @@ -769,7 +769,7 @@ export class ModerationService {

if (appealed !== undefined) {
builder =
appealed === null
appealed === false
? builder.where('appealed', 'is', null)
: builder.where('appealed', '=', appealed)
}
Expand Down

0 comments on commit 8252c65

Please sign in to comment.