Skip to content

Commit

Permalink
fix: history charts start at 0 instead of actual score
Browse files Browse the repository at this point in the history
  • Loading branch information
FreekBes committed Dec 6, 2024
1 parent 27856ac commit bac7a21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/routes/admin/charts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const setupAdminChartsRoutes = function(app: Express, prisma: PrismaClien
coalition_id: coalitionId,
created_at: {
gte: currentBloc.begin_at,
lt: new Date(),
lte: new Date(),
},
},
_sum: {
Expand Down
4 changes: 2 additions & 2 deletions src/routes/charts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export const setupChartRoutes = function(app: Express, prisma: PrismaClient): vo
user_id: user.id,
created_at: {
gte: blocStart,
lt: date,
lte: date,
},
},
});
Expand Down Expand Up @@ -383,7 +383,7 @@ export const setupChartRoutes = function(app: Express, prisma: PrismaClient): vo
user_id: user.id,
created_at: {
gte: blocStart,
lt: date,
lte: date,
},
},
});
Expand Down
2 changes: 1 addition & 1 deletion src/routes/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const setupProfileRoutes = function(app: Express, prisma: PrismaClient):
user_id: profileUser.id,
created_at: {
gte: currentBloc.begin_at,
lt: now,
lte: now,
},
},
})) : []);
Expand Down

0 comments on commit bac7a21

Please sign in to comment.