Skip to content

Commit

Permalink
/dailyAll
Browse files Browse the repository at this point in the history
  • Loading branch information
LarmuseauNiels committed Feb 9, 2024
1 parent e0f72e1 commit 348086c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/ApiFunctions/LegacyEndPoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,10 @@ export function legacyEndPoints(app) {
res.send(jsonify(globalThis.client.events));
}
});

app.get("/dailyAll", async function (req, res) {
let results = await globalThis.client.prisma
.$queryRaw`select DATE(timestamp) as date, count(*) as online from VoiceConnected group by date`;
res.send(jsonify(results));
});
}

0 comments on commit 348086c

Please sign in to comment.