From 8252c652e8c457072afca1a41ff057a49bbfef23 Mon Sep 17 00:00:00 2001 From: Foysal Ahamed Date: Tue, 3 Sep 2024 01:10:54 +0200 Subject: [PATCH] :bug: Fix appealed param's usage (#2777) :bug: Depend on false value instead of null since the input is sent through GET request for queryStatuses --- packages/ozone/src/mod-service/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ozone/src/mod-service/index.ts b/packages/ozone/src/mod-service/index.ts index 65c44768aaa..800befba27b 100644 --- a/packages/ozone/src/mod-service/index.ts +++ b/packages/ozone/src/mod-service/index.ts @@ -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 @@ -769,7 +769,7 @@ export class ModerationService { if (appealed !== undefined) { builder = - appealed === null + appealed === false ? builder.where('appealed', 'is', null) : builder.where('appealed', '=', appealed) }