From 2b8f97b5d7b78101e9b3eb864730afcdc13c5173 Mon Sep 17 00:00:00 2001 From: Fabian Posenau Date: Fri, 19 May 2023 22:18:15 +0200 Subject: [PATCH] refactor: add sendRefetch on fileupload (#396) Co-authored-by: Fabian Posenau --- apps/server/src/controllers/ontimeController.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/server/src/controllers/ontimeController.ts b/apps/server/src/controllers/ontimeController.ts index 4e02fcfa3..4f6fd06bd 100644 --- a/apps/server/src/controllers/ontimeController.ts +++ b/apps/server/src/controllers/ontimeController.ts @@ -11,6 +11,7 @@ import { resolveDbPath } from '../setup.js'; import { oscIntegration } from '../services/integration-service/OscIntegration.js'; import { logger } from '../classes/Logger.js'; import { deleteAllEvents } from '../services/RundownService.js'; +import { sendRefetch } from '../adapters/websocketAux.js'; // Create controller for GET request to '/ontime/poll' // Returns data for current state @@ -70,6 +71,7 @@ const uploadAndParse = async (file, req, res, options) => { await DataProvider.mergeIntoData(result.data); } } + sendRefetch(); res.sendStatus(200); } else { res.status(400).send({ message: 'Failed parsing, no data' });