mirror of
https://github.com/ershisan99/www.git
synced 2025-12-29 05:09:28 +00:00
fix caching
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { createTRPCRouter, publicProcedure } from '@/server/api/trpc'
|
||||
import { LeaderboardService } from '@/server/services/leaderboard'
|
||||
import type { LeaderboardResponse } from '@/server/services/neatqueue.service'
|
||||
import type { LeaderboardEntry } from '@/server/services/neatqueue.service'
|
||||
import { z } from 'zod'
|
||||
const service = new LeaderboardService()
|
||||
|
||||
@@ -14,7 +14,7 @@ export const leaderboard_router = createTRPCRouter({
|
||||
.query(async ({ input }) => {
|
||||
return (await service.getLeaderboard(
|
||||
input.channel_id
|
||||
)) as LeaderboardResponse['alltime']
|
||||
)) as LeaderboardEntry[]
|
||||
}),
|
||||
get_user_rank: publicProcedure
|
||||
.input(
|
||||
|
||||
Reference in New Issue
Block a user