mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-10 08:39:34 +00:00
style: run code formatting
This commit is contained in:
committed by
Carlos Valente
parent
7bd98c23a4
commit
9dfc8083f0
@@ -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
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user