Skip to content

Commit

Permalink
fix: redis queue
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed May 31, 2024
1 parent b5c3353 commit 9ab2c5c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"license": "AGPL-3",
"scripts": {
"start": "NODE_ENV=production node dist/index.js",
"start": "NODE_ENV=production node --inspect dist/index.js",
"dev": "vite-node -w src/index.ts",
"debug": "DEBUG=1 npm run dev",
"lint": "eslint \"./**/*.{ts,tsx}\" --max-warnings=0",
Expand All @@ -25,7 +25,7 @@
"body-parser": "^1.20.2",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"document-drive": "1.0.0-alpha.65",
"document-drive": "1.0.0-experimental.100",
"document-model": "1.3.0",
"document-model-libs": "^1.54.0",
"dotenv": "^16.4.5",
Expand Down
8 changes: 4 additions & 4 deletions api/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/src/modules/document/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function getDocumentDriveCRUD(prisma: Prisma.TransactionClient) {
documentModels,
new PrismaStorage(prisma as PrismaClient),
redisClient ? new RedisCache(redisClient) : new MemoryCache(),
redisClient ? new RedisQueueManager(3, 10, redisClient) : new BaseQueueManager(3, 10),
redisClient ? new RedisQueueManager(1, 10, redisClient) : new BaseQueueManager(3, 10),
);

initialize();
Expand Down

0 comments on commit 9ab2c5c

Please sign in to comment.