Skip to content

Commit e08740b

Browse files
committed
fix(api): fixed check of visible param in searchCertificationsV2ForAdmin
1 parent 03f7854 commit e08740b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/reva-api/modules/referential/features/searchCertificationsV2ForAdmin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const searchCertificationsV2ForAdmin = async ({
5050
};
5151
}
5252

53-
if (visible) {
53+
if (typeof visible == "boolean") {
5454
whereClause = {
5555
...whereClause,
5656
visible,

0 commit comments

Comments
 (0)