Skip to content

Commit 4c20ff3

Browse files
Merge pull request #28 from KishoreIthadi/develop
updated APIUtility
2 parents 40bac6c + efe59ea commit 4c20ff3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

PingerExtension/src/scripts/APIutility.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,27 +55,27 @@ var APIUtility = (function () {
5555

5656
data.forEach(function (item) {
5757

58-
var updatedObj = localStorageUtility.retriveItem(item.Key);
58+
var updatedObj = localStorageUtility.retriveItem(item.key);
5959
updatedObj.sendEmail = false;
6060

61-
if (item.PreviousState == config.taskStatus.checking &&
62-
item.UpdatedState == config.taskStatus.dead) {
61+
if (item.previousState == config.taskStatus.checking &&
62+
item.updatedState == config.taskStatus.dead) {
6363
// This condition executes when the entity is added for the first time and it fails
6464
updatedObj.sendEmail = true;
65-
} else if (item.PreviousState != config.taskStatus.checking &&
66-
item.PreviousState != item.UpdatedState) {
65+
} else if (item.previousState != config.taskStatus.checking &&
66+
item.previousState != item.updatedState) {
6767
updatedObj.sendEmail = true;
6868
}
6969

70-
updatedObj.status = item.UpdatedState;
71-
updatedObj.previousStatus = item.UpdatedState;
70+
updatedObj.status = item.updatedState;
71+
updatedObj.previousStatus = item.updatedState;
7272

7373
updatedObj.unableToRetrive = false;
7474

75-
localStorageUtility.updateItem(item.Key, updatedObj);
75+
localStorageUtility.updateItem(item.key, updatedObj);
7676

7777
if (!isBackGroundTask) {
78-
UIUtility.updateStatus(item.Key);
78+
UIUtility.updateStatus(item.key);
7979
}
8080
});
8181
},

0 commit comments

Comments
 (0)