RELATIONSHIP_VALUE_INVALID

This commit is contained in:
fogelito committed 2024-04-09 15:38:55 +03:00
1 parent 65ab721c3d
commit 12434fd846
3 files changed
+7 -2

No files matched your search

+5
View File
@@ -592,6 +592,11 @@ return [
'description' => 'The attribute type is invalid.',
'code' => 400,
],
Exception::RELATIONSHIP_VALUE_INVALID => [
'name' => Exception::RELATIONSHIP_VALUE_INVALID,
'description' => 'The relationship value is invalid.',
'code' => 400,
],
/** Indexes */
Exception::INDEX_NOT_FOUND => [
+1 -1
View File
@@ -849,7 +849,7 @@ App::error()
break;
case 'Utopia\Database\Exception\InvalidRelationshipValue':
\var_dump('Wrapping relationship exception');
$error = new AppwriteException(AppwriteException::INVALID_RELATIONSHIP_VALUE);
$error = new AppwriteException(AppwriteException::RELATIONSHIP_VALUE_INVALID);
break;
}
+1 -1
View File
@@ -177,7 +177,7 @@ class Exception extends \Exception
public const ATTRIBUTE_TYPE_INVALID = 'attribute_type_invalid';
/** Relationship */
public const INVALID_RELATIONSHIP_VALUE = 'invalid_relationship_value';
public const RELATIONSHIP_VALUE_INVALID = 'relationship_value_invalid';
/** Indexes */
public const INDEX_NOT_FOUND = 'index_not_found';