Skip to content

Commit 26282fb

Browse files
committed
fix: update startwith for crud types
1 parent 4ca1fc6 commit 26282fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class CoCreateCrudServer {
112112
data['timeStamp'] = new Date()
113113

114114
// TODO: manage error handling if if no method defined
115-
if (data.method.startsWith('update') && data.upsert != false)
115+
if (data.method.startsWith('update.') && data.upsert != false)
116116
data.upsert = true
117117

118118
if (data.array) {

0 commit comments

Comments
 (0)