Feature/exclude manual data source from encoding (#4307)

* Exclude MANUAL data source from encoding
This commit is contained in:
Thomas Kaul 2025-02-12 21:17:01 +01:00 committed by GitHub
parent b616274380
commit c7f39d3884
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,9 +33,12 @@ export class TransformDataSourceInResponseInterceptor<T>
attribute: 'dataSource',
valueMap: Object.keys(DataSource).reduce(
(valueMap, dataSource) => {
valueMap[dataSource] = encodeDataSource(
DataSource[dataSource]
);
if (!['MANUAL'].includes(dataSource)) {
valueMap[dataSource] = encodeDataSource(
DataSource[dataSource]
);
}
return valueMap;
},
{}