|
|
@ -134,8 +134,9 @@ export class DatasService { |
|
|
|
query: any; |
|
|
|
query: any; |
|
|
|
baseModel?: BaseModelSqlv2; |
|
|
|
baseModel?: BaseModelSqlv2; |
|
|
|
throwErrorIfInvalidParams?: boolean; |
|
|
|
throwErrorIfInvalidParams?: boolean; |
|
|
|
|
|
|
|
ignoreViewFilterAndSort?: boolean; |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
const { model, view, query = {} } = param; |
|
|
|
const { model, view, query = {}, ignoreViewFilterAndSort = false } = param; |
|
|
|
|
|
|
|
|
|
|
|
const source = await Source.get(model.source_id); |
|
|
|
const source = await Source.get(model.source_id); |
|
|
|
|
|
|
|
|
|
|
@ -171,7 +172,7 @@ export class DatasService { |
|
|
|
ast, |
|
|
|
ast, |
|
|
|
await baseModel.list( |
|
|
|
await baseModel.list( |
|
|
|
listArgs, |
|
|
|
listArgs, |
|
|
|
false, |
|
|
|
ignoreViewFilterAndSort, |
|
|
|
false, |
|
|
|
false, |
|
|
|
param.throwErrorIfInvalidParams, |
|
|
|
param.throwErrorIfInvalidParams, |
|
|
|
), |
|
|
|
), |
|
|
|