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: [] }));