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,
|
notifications: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return monitor;
|
|
||||||
} else {
|
} else {
|
||||||
// create
|
// create
|
||||||
monitor = await prisma.monitor.create({
|
monitor = await prisma.monitor.create({
|
||||||
@ -171,7 +169,7 @@ class MonitorRunner {
|
|||||||
try {
|
try {
|
||||||
value = await provider.run(monitor);
|
value = await provider.run(monitor);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error('[Monitor] run error:', String(err));
|
logger.error(`[Monitor] (id: ${monitor.id}) run error:`, String(err));
|
||||||
value = -1;
|
value = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user