cases 4221, 4223
This commit is contained in:
@@ -14,14 +14,16 @@ export default {
|
||||
try {
|
||||
await window.$gz.util.sleepAsync(pollingInterval);
|
||||
if (keepChecking && window.$gz.store.state.authenticated) {
|
||||
status = await window.$gz.api.get("notify/new-count");
|
||||
if (status.error) {
|
||||
throw new Error(window.$gz.errorHandler.errorToString(status));
|
||||
// throw new Error(status.error);
|
||||
} else {
|
||||
window.$gz.store.commit("setNewNotificationCount", status.data);
|
||||
//success so go to default in case it was changed by an error
|
||||
pollingInterval = DEFAULT_POLLING_INTERVAL;
|
||||
if (window.$gz.erasingDatabase == false) {
|
||||
status = await window.$gz.api.get("notify/new-count");
|
||||
if (status.error) {
|
||||
throw new Error(window.$gz.errorHandler.errorToString(status));
|
||||
// throw new Error(status.error);
|
||||
} else {
|
||||
window.$gz.store.commit("setNewNotificationCount", status.data);
|
||||
//success so go to default in case it was changed by an error
|
||||
pollingInterval = DEFAULT_POLLING_INTERVAL;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
keepChecking = false;
|
||||
|
||||
Reference in New Issue
Block a user