mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fixed DB new path errors
This commit is contained in:
@@ -349,8 +349,8 @@ $utopia->get('/v1/database/collections/:collectionId/documents/:documentId')
|
||||
$output = $document->getArrayCopy();
|
||||
|
||||
$paths = explode('/', $request->getParam('q', ''));
|
||||
$paths = array_slice($paths, 6, count($paths));
|
||||
|
||||
$paths = array_slice($paths, 7, count($paths));
|
||||
|
||||
if (count($paths) > 0) {
|
||||
if (count($paths) % 2 == 1) {
|
||||
$output = $document->getAttribute(implode('.', $paths));
|
||||
|
||||
Reference in New Issue
Block a user