Skip to content

Commit

Permalink
fix: the stats query
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarneo committed Oct 30, 2024
1 parent a2d250e commit 0f7fe79
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions server/controllers/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,18 @@ async function statistics(fastify) {
prisma.secret.count({ where: { NOT: { password: null } } }),
prisma.secret.count({
where: {
allowed_ip: {
not: {
in: [null, ''],
AND: [
{
allowed_ip: {
not: null,
},
},
},
{
allowed_ip: {
not: '',
},
},
],
},
}),
prisma.secret.aggregate({
Expand Down

0 comments on commit 0f7fe79

Please sign in to comment.