mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Fix syntax
This commit is contained in:
parent
0aaa276f03
commit
44e7068a9a
1 changed files with 0 additions and 6 deletions
|
|
@ -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']}'";
|
||||
|
|
|
|||
Loading…
Reference in a new issue