Returned comments.
This commit is contained in:
1 parent
aa977ce34e
commit
964a923265
1 file changed
+2
@@ -114,7 +114,9 @@ class NotificationService {
|
|||||||
|
|
||||||
async handleStatusNotifications(networkResponse) {
|
async handleStatusNotifications(networkResponse) {
|
||||||
try {
|
try {
|
||||||
|
//If status hasn't changed, we're done
|
||||||
if (networkResponse.statusChanged === false) return false;
|
if (networkResponse.statusChanged === false) return false;
|
||||||
|
// if prevStatus is undefined, monitor is resuming, we're done
|
||||||
if (networkResponse.prevStatus === undefined) return false;
|
if (networkResponse.prevStatus === undefined) return false;
|
||||||
|
|
||||||
const notifications = await this.db.getNotificationsByMonitorId(networkResponse.monitorId);
|
const notifications = await this.db.getNotificationsByMonitorId(networkResponse.monitorId);
|
||||||
|
|||||||
Reference in new issue
Block a user