mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
1 parent
62d03aebb6
commit
ce62464142
1 file changed
+4
-2
+4
-2
@@ -330,8 +330,10 @@ class Client
|
||||
// MongoDB will reject commands with readConcern that have txnNumber but not startTransaction
|
||||
// Or if the command is in the readConcernNotSupporteedCommands array
|
||||
if (((isset($command['txnNumber']) && !isset($command['startTransaction']) && isset($command['readConcern']))
|
||||
||
|
||||
in_array(array_keys($command)[0] ?? '', $this->readConcernNotSupporteedCommands))) {
|
||||
if (
|
||||
((isset($command['txnNumber']) && !isset($command['startTransaction']) && isset($command['readConcern']))
|
||||
|| \in_array(array_key_first($command) ?? '', $this->readConcernNotSupporteedCommands))
|
||||
) {
|
||||
unset($command['readConcern']);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user