mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Return empty on no collection, fallback to route validation
This commit is contained in:
parent
dde6968e50
commit
8a5a6037b1
1 changed files with 4 additions and 4 deletions
|
|
@ -146,8 +146,8 @@ class V20 extends Filter
|
|||
if ($database->isEmpty()) {
|
||||
return [];
|
||||
}
|
||||
} catch (NotFound) {
|
||||
throw new Exception(Exception::DATABASE_NOT_FOUND);
|
||||
} catch (\Throwable) {
|
||||
return [];
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
@ -158,8 +158,8 @@ class V20 extends Filter
|
|||
if ($collection->isEmpty()) {
|
||||
return [];
|
||||
}
|
||||
} catch (NotFound) {
|
||||
throw new Exception(Exception::COLLECTION_NOT_FOUND);
|
||||
} catch (\Throwable) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$attributes = $collection->getAttribute('attributes', []);
|
||||
|
|
|
|||
Loading…
Reference in a new issue