feat: automation service

This commit is contained in:
Carlos Valente
2024-11-23 22:20:07 +01:00
committed by Carlos Valente
parent a8fe4c8e68
commit 05e61e7bf8
28 changed files with 1220 additions and 8 deletions
+12 -2
View File
@@ -18,8 +18,18 @@ import * as projectService from '../../services/project-service/ProjectService.j
export async function patchPartialProjectFile(req: Request, res: Response<DatabaseModel | ErrorResponse>) {
try {
const { rundown, project, settings, viewSettings, urlPresets, customFields, osc, http } = req.body;
const patchDb: DatabaseModel = { rundown, project, settings, viewSettings, urlPresets, customFields, osc, http };
const { rundown, project, settings, viewSettings, urlPresets, customFields, osc, http, automation } = req.body;
const patchDb: DatabaseModel = {
rundown,
project,
settings,
viewSettings,
urlPresets,
customFields,
osc,
http,
automation,
};
const newData = await projectService.patchCurrentProject(patchDb);