Fix array_map error (#54)

pull/62/head
Varun Patil 2022-09-25 03:00:07 -07:00
parent 821e10525e
commit 3be44725cc
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ class ApiController extends Controller {
return [ return [
"dayid" => \OCA\Memories\Util::$TAG_DAYID_FOLDERS, "dayid" => \OCA\Memories\Util::$TAG_DAYID_FOLDERS,
"count" => count($folders), "count" => count($folders),
"detail" => array_map(function (&$node) { "detail" => array_map(function ($node) {
return [ return [
"fileid" => $node->getId(), "fileid" => $node->getId(),
"name" => $node->getName(), "name" => $node->getName(),