mirror of
https://github.com/ershisan99/www.git
synced 2025-12-29 05:09:28 +00:00
fix caching
This commit is contained in:
@@ -32,7 +32,6 @@ export async function syncHistory() {
|
||||
.where(eq(metadata.key, 'history_cursor'))
|
||||
.limit(1)
|
||||
.then((res) => res[0])
|
||||
console.log('cursor', cursor)
|
||||
const data = await ky
|
||||
.get('https://api.neatqueue.com/api/history/1226193436521267223', {
|
||||
searchParams: {
|
||||
@@ -64,9 +63,6 @@ export async function syncHistory() {
|
||||
value: firstGame,
|
||||
},
|
||||
})
|
||||
console.log('matches', matches)
|
||||
console.log('firstGame', firstGame)
|
||||
console.log('data', data)
|
||||
|
||||
const chunkedData = chunk(data.data, 100)
|
||||
for (const chunk of chunkedData) {
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { createTRPCRouter, publicProcedure } from '@/server/api/trpc'
|
||||
import { LeaderboardService } from '@/server/services/leaderboard'
|
||||
import {
|
||||
type LeaderboardResponse,
|
||||
neatqueue_service,
|
||||
} from '@/server/services/neatqueue.service'
|
||||
import type { LeaderboardResponse } from '@/server/services/neatqueue.service'
|
||||
import { z } from 'zod'
|
||||
const service = new LeaderboardService()
|
||||
|
||||
@@ -17,7 +14,7 @@ export const leaderboard_router = createTRPCRouter({
|
||||
.query(async ({ input }) => {
|
||||
return (await service.getLeaderboard(
|
||||
input.channel_id
|
||||
)) as LeaderboardResponse
|
||||
)) as LeaderboardResponse['alltime']
|
||||
}),
|
||||
get_user_rank: publicProcedure
|
||||
.input(
|
||||
|
||||
Reference in New Issue
Block a user