Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
Updated easybasejs to 4.2.8 for codes
Browse files Browse the repository at this point in the history
  • Loading branch information
dilan-dio4 committed May 26, 2021
1 parent d6f7eae commit 222e2b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"dependencies": {
"@react-native-community/async-storage": "1.12.1",
"EasyQB": "git+https://github.com/easybase/EasyQB.git",
"easybasejs": "^4.2.6",
"easybasejs": "^4.2.8",
"fast-deep-equal": "^3.1.3",
"object-observer": "^4.0.3",
"react-native-storage": "^1.0.1"
Expand Down
18 changes: 9 additions & 9 deletions src/EasybaseProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const EasybaseProvider = ({ children, ebconfig, options }: EasybaseProviderProps
return {
message: "Easybase Error: addRecord failed " + err,
success: false,
error: err
errorCode: err
}
}
}
Expand All @@ -291,12 +291,12 @@ const EasybaseProvider = ({ children, ebconfig, options }: EasybaseProviderProps
success: res.success,
message: res.data
}
} catch (err) {
console.error("Easybase Error: deleteRecord failed ", err);
} catch (error) {
console.error("Easybase Error: deleteRecord failed ", error);
return {
success: false,
message: "Easybase Error: deleteRecord failed " + err,
error: err
message: "Easybase Error: deleteRecord failed " + error,
errorCode: error.errorCode || undefined
}
}
}
Expand Down Expand Up @@ -377,13 +377,13 @@ const EasybaseProvider = ({ children, ebconfig, options }: EasybaseProviderProps
success: true
}
}
} catch (err) {
console.error("Easybase Error: get failed ", err);
} catch (error) {
console.error("Easybase Error: get failed ", error);
setIsSyncing(false);
return {
success: false,
message: "Easybase Error: get failed " + err,
error: err
message: "Easybase Error: get failed " + error,
errorCode: error.errorCode || undefined
}
}
}
Expand Down

0 comments on commit 222e2b7

Please sign in to comment.