Skip to content

Commit

Permalink
fix(backend): Outreach total
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasptsch committed Dec 29, 2023
1 parent bebc86f commit c296afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/services/outreach.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ export async function getOutreachTime(

const [totalData] = await db
.select({
total: count(),
duration: sql<string>`sum(${rsvp.checkoutTime} - ${rsvp.checkinTime})`,
total: count(user.id),
})
.from(rsvp)
.leftJoin(event, eq(rsvp.eventId, event.id))
Expand All @@ -62,6 +61,7 @@ export async function getOutreachTime(

if (totalData) {
total = totalData.total;
console.log({ total });
}

const offset = page * limit;
Expand Down

0 comments on commit c296afe

Please sign in to comment.