From 8dccf49c28f2dad6d0ea98d67005f2d97f7d2872 Mon Sep 17 00:00:00 2001 From: Maximilian Mairinger Date: Tue, 16 Jan 2024 11:31:40 +0100 Subject: [PATCH] server save new data after change detected --- server/src/server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/server.ts b/server/src/server.ts index 77fb8f0..51a1689 100644 --- a/server/src/server.ts +++ b/server/src/server.ts @@ -59,6 +59,7 @@ setup("lbAnmeldung").then(async ({app, db}) => { if (lastTxt !== newTxt) { addLineToFile(newTxt) sendMsgToClients("Change detected") + lastTxt = newTxt } } catch(e) {