improve(api): update api to fastify v5
This commit is contained in:
@@ -64,3 +64,8 @@ export function getRedisQueue() {
|
||||
|
||||
return redisQueue;
|
||||
}
|
||||
|
||||
export async function getLock(key: string, value: string, timeout: number) {
|
||||
const lock = await getRedisCache().set(key, value, 'PX', timeout, 'NX');
|
||||
return lock === 'OK';
|
||||
}
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
"@openpanel/validation": "workspace:*",
|
||||
"@seventy-seven/sdk": "0.0.0-beta.2",
|
||||
"@trpc-limiter/redis": "^0.0.2",
|
||||
"@trpc/server": "^10.45.1",
|
||||
"@trpc/client": "^10.45.1",
|
||||
"@trpc/server": "^10.45.2",
|
||||
"@trpc/client": "^10.45.2",
|
||||
"bcrypt": "^5.1.1",
|
||||
"date-fns": "^3.3.1",
|
||||
"mathjs": "^12.3.2",
|
||||
|
||||
Reference in New Issue
Block a user