mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 18:41:21 +00:00
feat: resolved count fallback
This commit is contained in:
@@ -434,7 +434,7 @@ export const projectDALFactory = (db: TDbClient) => {
|
||||
}
|
||||
})
|
||||
.count();
|
||||
return Number(doc?.[0].count);
|
||||
return Number(doc?.[0]?.count ?? 0);
|
||||
} catch (error) {
|
||||
throw new DatabaseError({ error, name: "Count of Org Projects" });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user