@@ -55,27 +55,27 @@ var APIUtility = (function () {
55
55
56
56
data . forEach ( function ( item ) {
57
57
58
- var updatedObj = localStorageUtility . retriveItem ( item . Key ) ;
58
+ var updatedObj = localStorageUtility . retriveItem ( item . key ) ;
59
59
updatedObj . sendEmail = false ;
60
60
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 ) {
63
63
// This condition executes when the entity is added for the first time and it fails
64
64
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 ) {
67
67
updatedObj . sendEmail = true ;
68
68
}
69
69
70
- updatedObj . status = item . UpdatedState ;
71
- updatedObj . previousStatus = item . UpdatedState ;
70
+ updatedObj . status = item . updatedState ;
71
+ updatedObj . previousStatus = item . updatedState ;
72
72
73
73
updatedObj . unableToRetrive = false ;
74
74
75
- localStorageUtility . updateItem ( item . Key , updatedObj ) ;
75
+ localStorageUtility . updateItem ( item . key , updatedObj ) ;
76
76
77
77
if ( ! isBackGroundTask ) {
78
- UIUtility . updateStatus ( item . Key ) ;
78
+ UIUtility . updateStatus ( item . key ) ;
79
79
}
80
80
} ) ;
81
81
} ,
0 commit comments