mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-23 12:39:07 +00:00
FIX: catalog sort by
This commit is contained in:
@@ -144,14 +144,10 @@ class CatalogService implements OnModuleInit {
|
||||
return [customer_users, customer_roles];
|
||||
}
|
||||
|
||||
async getAllOpenSearchDataAssets(
|
||||
data: Messages.GetAllDataAssetsRequest,
|
||||
metadata,
|
||||
customer_id,
|
||||
) {
|
||||
async getAllOpenSearchDataAssets(query, metadata, customer_id) {
|
||||
this.logger.info('CatalogService - getAllOpenSearchDashboard');
|
||||
|
||||
const { search, page, size, ...filters } = data;
|
||||
const { search, page, size, sort_by, order, ...filters } = query;
|
||||
|
||||
const { data_assets, total } = await lastValueFrom(
|
||||
this.catalogReadService.GetAllDataAssets(
|
||||
@@ -159,6 +155,8 @@ class CatalogService implements OnModuleInit {
|
||||
search,
|
||||
page,
|
||||
size,
|
||||
sort_by,
|
||||
order,
|
||||
...filters,
|
||||
},
|
||||
metadata,
|
||||
|
||||
Reference in New Issue
Block a user