Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup, update is valid insert too
Browse files Browse the repository at this point in the history
Spamercz committed May 20, 2021
1 parent 41cb7ce commit 9c2a211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Insert.php
Original file line number Diff line number Diff line change
@@ -85,7 +85,7 @@ public function execute(
return $response['_id'];
}

if (isset($response['result']) && $response['result'] === 'created') {
if (isset($response['result']) && ($response['result'] === 'created' || $response['result'] === 'updated')) {
return $response['_id'];
}

0 comments on commit 9c2a211

Please sign in to comment.