Skip to content

Commit 9c2a211

Browse files
committed
fixup, update is valid insert too
1 parent 41cb7ce commit 9c2a211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Insert.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function execute(
8585
return $response['_id'];
8686
}
8787

88-
if (isset($response['result']) && $response['result'] === 'created') {
88+
if (isset($response['result']) && ($response['result'] === 'created' || $response['result'] === 'updated')) {
8989
return $response['_id'];
9090
}
9191

0 commit comments

Comments
 (0)