fix: fix update monitor not update runner problem
This commit is contained in:
parent
4c072290e0
commit
e0e338f819
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user