Browse Source
Feature/exclude manual data source from encoding (#4307)
* Exclude MANUAL data source from encoding
pull/4315/head
Thomas Kaul
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
6 additions and
3 deletions
-
apps/api/src/interceptors/transform-data-source-in-response/transform-data-source-in-response.interceptor.ts
|
@ -33,9 +33,12 @@ export class TransformDataSourceInResponseInterceptor<T> |
|
|
attribute: 'dataSource', |
|
|
attribute: 'dataSource', |
|
|
valueMap: Object.keys(DataSource).reduce( |
|
|
valueMap: Object.keys(DataSource).reduce( |
|
|
(valueMap, dataSource) => { |
|
|
(valueMap, dataSource) => { |
|
|
valueMap[dataSource] = encodeDataSource( |
|
|
if (!['MANUAL'].includes(dataSource)) { |
|
|
DataSource[dataSource] |
|
|
valueMap[dataSource] = encodeDataSource( |
|
|
); |
|
|
DataSource[dataSource] |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return valueMap; |
|
|
return valueMap; |
|
|
}, |
|
|
}, |
|
|
{} |
|
|
{} |
|
|