refactor network service
This commit is contained in:
1 parent
9925e10ffc
commit
45ac589975
5 files changed
+206
-310
No files matched your search
@@ -54,6 +54,7 @@ class SuperSimpleQueue {
|
||||
id: monitorId.toString(),
|
||||
template: "monitor-job",
|
||||
repeat: monitor.interval,
|
||||
active: monitor.isActive,
|
||||
data: monitor.toObject(),
|
||||
});
|
||||
};
|
||||
|
||||
@@ -31,7 +31,8 @@ class SuperSimpleQueueHelper {
|
||||
});
|
||||
return;
|
||||
}
|
||||
const networkResponse = await this.networkService.getStatus(monitor);
|
||||
const networkResponse = await this.networkService.requestStatus(monitor);
|
||||
|
||||
if (!networkResponse) {
|
||||
throw new Error("No network response");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user