Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AmelieLoulergue committed Dec 1, 2024
1 parent 7c77512 commit 67c5ba9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/api/middleware/validators/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

Expand Down
2 changes: 1 addition & 1 deletion src/api/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [] }));
Expand Down

0 comments on commit 67c5ba9

Please sign in to comment.