Skip to content

Commit

Permalink
Add distinctconversations to getAssistantsUsageData
Browse files Browse the repository at this point in the history
  • Loading branch information
albandum committed Nov 28, 2024
1 parent c210dff commit 7aff54a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions front/lib/workspace_usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ export async function getAssistantsUsageData(
ARRAY_AGG(DISTINCT aut."email") AS "authorEmails",
COUNT(a."id") AS "messages",
COUNT(DISTINCT u."id") AS "distinctUsersReached",
COUNT(DISTINCT m."conversationId") AS "distinctConversations",
MAX(CAST(ac."createdAt" AS DATE)) AS "lastEdit"
FROM
"agent_messages" a
Expand Down

0 comments on commit 7aff54a

Please sign in to comment.