From 67c5ba9e361c7924f6b7b39aceec30d1055096db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Am=C3=A9lie=20Loulergue?= Date: Sun, 1 Dec 2024 07:14:44 +0100 Subject: [PATCH] remove debug --- src/api/middleware/validators/utils/index.ts | 1 - src/api/server.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/middleware/validators/utils/index.ts b/src/api/middleware/validators/utils/index.ts index c07f069..4378374 100644 --- a/src/api/middleware/validators/utils/index.ts +++ b/src/api/middleware/validators/utils/index.ts @@ -32,7 +32,6 @@ export const sendResponse = async ({ res, status, data = null, errors = null, pu if (purge !== 'false' && process.env.DELEGATED_STORAGE_METHOD !== 'STANDALONE') { await purgeData(purge === 'catalog' ? 'catalog' : data); } - console.debug('Sending response:', data, errors); return res.status(status).json({ data, errors }).end(); }; diff --git a/src/api/server.ts b/src/api/server.ts index a6c4835..6edd3b9 100644 --- a/src/api/server.ts +++ b/src/api/server.ts @@ -60,7 +60,7 @@ const connectToRedisWithRetry = async (maxRetries, delay) => { const createStandaloneFolderAndCatalog = () => { if (!fs.readdirSync('/tmp/standalone')) { logger.info('Creating /tmp/standalone...'); - fs.mkdirSync('/tmp/standalone'); + fs.mkdirSync('/tmp/standalone', { recursive: true }); } if (!fs.existsSync('/tmp/standalone/catalog.json')) { fs.writeFileSync('/tmp/standalone/catalog.json', JSON.stringify({ data: [] }));