chore: Application du linter

This commit is contained in:
Luc SORIGNET
2025-05-12 10:34:47 +02:00
parent 23a593dbc7
commit 425e6d73e5
56 changed files with 1140 additions and 1469 deletions

View File

@ -1,3 +1,4 @@
import logger from '@/utils/logger';
import { BE_DOCUSEAL_REMOVE_TEMPLATE } from '@/utils/Url';
export default function handler(req, res) {
@ -19,11 +20,11 @@ export default function handler(req, res) {
return response.json();
})
.then((data) => {
console.log('Template removed successfully:', data);
logger.debug('Template removed successfully:', data);
res.status(200).json(data);
})
.catch((error) => {
console.error('Error removing template:', error);
logger.error('Error removing template:', error);
res.status(500).json({ error: 'Internal Server Error' });
});
} else {