roll back some stuff changed for debugging purposes

This commit is contained in:
2025-04-22 05:17:21 +02:00
parent 831b9f864b
commit f8e0475071
4 changed files with 14 additions and 26 deletions

View File

@@ -14,14 +14,11 @@ export const history_router = createTRPCRouter({
})
)
.query(async ({ ctx, input }) => {
const res = await ctx.db
return await ctx.db
.select()
.from(player_games)
.where(eq(player_games.playerId, input.user_id))
.orderBy(desc(player_games.gameNum))
console.log('history.user_games', res)
return res
}),
sync: publicProcedure.mutation(async () => {
return syncHistory()

View File

@@ -24,8 +24,6 @@ export const leaderboard_router = createTRPCRouter({
})
)
.query(async ({ input }) => {
const res = await service.getUserRank(input.channel_id, input.user_id)
console.log('leaderboard.get_user_rank', res)
return res
return await service.getUserRank(input.channel_id, input.user_id)
}),
})