File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ function validateJson(json) {
15
15
if ( json . hasOwnProperty ( "insert" ) && ( json . hasOwnProperty ( "update" ) || json . hasOwnProperty ( "delete" ) || json . hasOwnProperty ( "select" ) ) ) {
16
16
throw new Error ( "Cannot use insert with update,delete or select" ) ;
17
17
}
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" ) ;
20
20
}
21
21
if ( json . hasOwnProperty ( "delete" ) && ( json . hasOwnProperty ( "update" ) || json . hasOwnProperty ( "insert" ) || json . hasOwnProperty ( "select" ) ) ) {
22
22
throw new Error ( "Cannot use delete with update,insert or select" ) ;
@@ -30,4 +30,4 @@ function validateJson(json) {
30
30
31
31
module . exports = {
32
32
validateJson :validateJson
33
- }
33
+ }
You can’t perform that action at this time.
0 commit comments