From e0e338f819e2c543e31e8255e8ad3fd35ab94e11 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sun, 31 Dec 2023 18:51:12 +0800 Subject: [PATCH] fix: fix update monitor not update runner problem --- src/server/model/monitor/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/server/model/monitor/index.ts b/src/server/model/monitor/index.ts index ce3d623..5387c3c 100644 --- a/src/server/model/monitor/index.ts +++ b/src/server/model/monitor/index.ts @@ -44,8 +44,6 @@ class MonitorManager { notifications: true, }, }); - - return monitor; } else { // create monitor = await prisma.monitor.create({ @@ -171,7 +169,7 @@ class MonitorRunner { try { value = await provider.run(monitor); } catch (err) { - logger.error('[Monitor] run error:', String(err)); + logger.error(`[Monitor] (id: ${monitor.id}) run error:`, String(err)); value = -1; }