mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Fix syntax
This commit is contained in:
1 file changed
-6
@@ -127,12 +127,6 @@ class Operation extends Validator
|
||||
}
|
||||
|
||||
// If action requires documentId, it must be present
|
||||
- if (
|
||||
- isset($this->requiresDocumentId[$value['action']]) &&
|
||||
- !\array_key_exists($this->documentIdName, $value)
|
||||
- ) {
|
||||
- $this->description = "Key '$this->documentIdName' is required for action '{$value['action']}'";
|
||||
- return false;
|
||||
$actionRequiresDocumentId = ($this->requiresDocumentId[$value['action']] ?? false) === true;
|
||||
if ($actionRequiresDocumentId && !\array_key_exists($this->documentIdName, $value)) {
|
||||
$this->description = "Key '$this->documentIdName' is required for action '{$value['action']}'";
|
||||
|
||||
Reference in new issue
Block a user