Skip to content

Commit 5704046

Browse files
authored
Merge pull request #57 from DynamiteC/patch-1
Update utils.js
2 parents 0f68941 + 91b06d9 commit 5704046

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ function validateJson(json) {
1515
if (json.hasOwnProperty("insert") && (json.hasOwnProperty("update") || json.hasOwnProperty("delete") || json.hasOwnProperty("select"))) {
1616
throw new Error("Cannot use insert with update,delete or select");
1717
}
18-
if (json.hasOwnProperty("udpate") && (json.hasOwnProperty("insert") || json.hasOwnProperty("delete") || json.hasOwnProperty("select"))) {
19-
throw new Error("Cannot use udpate with insert,delete or select");
18+
if (json.hasOwnProperty("update") && (json.hasOwnProperty("insert") || json.hasOwnProperty("delete") || json.hasOwnProperty("select"))) {
19+
throw new Error("Cannot use update with insert,delete or select");
2020
}
2121
if (json.hasOwnProperty("delete") && (json.hasOwnProperty("update") || json.hasOwnProperty("insert") || json.hasOwnProperty("select"))) {
2222
throw new Error("Cannot use delete with update,insert or select");
@@ -30,4 +30,4 @@ function validateJson(json) {
3030

3131
module.exports={
3232
validateJson:validateJson
33-
}
33+
}

0 commit comments

Comments
 (0)