update items result structure
This commit is contained in:
parent
fd9f4d0444
commit
5d6b6274ae
@ -108,8 +108,10 @@ class ItemsCollection
|
||||
);
|
||||
})->map(function ($item) use ($locale) {
|
||||
return [
|
||||
'_id' => $item['_id'],
|
||||
'_name' => $item['_name'],
|
||||
'item' => [
|
||||
'_id' => $item['_id'],
|
||||
'_name' => $item['_name'],
|
||||
],
|
||||
'locale' => $this->locales[$locale][$item['_id']] ?? ''
|
||||
];
|
||||
})->values();
|
||||
|
Loading…
x
Reference in New Issue
Block a user