fix: fix update monitor not update runner problem

This commit is contained in:
moonrailgun 2023-12-31 18:51:12 +08:00
parent 4c072290e0
commit e0e338f819

View File

@ -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;
}