style: run code formatting

This commit is contained in:
Carlos Valente
2025-10-31 19:21:16 +01:00
committed by Carlos Valente
parent 7bd98c23a4
commit 9dfc8083f0
2 changed files with 19 additions and 16 deletions
@@ -98,7 +98,10 @@ router.post('/', rundownPostValidator, async (req: Request, res: Response<Projec
/** /**
* Duplicates an existing rundown * Duplicates an existing rundown
*/ */
router.post('/:id/duplicate', paramsWithId, async (req: Request, res: Response<ProjectRundownsList | ErrorResponse>) => { router.post(
'/:id/duplicate',
paramsWithId,
async (req: Request, res: Response<ProjectRundownsList | ErrorResponse>) => {
try { try {
const dataProvider = getDataProvider(); const dataProvider = getDataProvider();
const rundown = dataProvider.getRundown(req.params.id); const rundown = dataProvider.getRundown(req.params.id);
@@ -112,7 +115,8 @@ router.post('/:id/duplicate', paramsWithId, async (req: Request, res: Response<P
const message = getErrorMessage(error); const message = getErrorMessage(error);
res.status(400).send({ message }); res.status(400).send({ message });
} }
}); },
);
/** /**
* Patches the data of an existing rundown * Patches the data of an existing rundown
@@ -519,7 +519,6 @@ export function normalisedToRundownArray(rundowns: ProjectRundowns): ProjectRund
}); });
} }
/** /**
* Duplicates an existing rundown ensuring all IDs are unique * Duplicates an existing rundown ensuring all IDs are unique
*/ */