Skip to content

Commit

Permalink
Merge pull request #189 from Sanketika-Obsrv/#234api-integration
Browse files Browse the repository at this point in the history
Sanketika-Obsrv/issue-tracker#OBS-143: changes in generating updated …
  • Loading branch information
HarishGangula authored Jun 18, 2024
2 parents de7edf1 + 3a85df7 commit 3dd90c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-service/src/v2/services/DatasourceService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ const processDenormConfigurations = async (item: any) => {
const denormFieldsData: any = [];
const redis_db = _.get(item, "redis_db");
const denorm_out_field = _.get(item, "denorm_out_field");
const dataset: any = await Dataset.findOne({ where: { "dataset_config.redis_db": redis_db }, raw: true }) || []
const dataset: any = await Dataset.findOne({ where: { "dataset_config": { "redis_db": redis_db } }, raw: true }) || []
const transformations = _.size(dataset) ? await DatasetTransformations.findAll({ where: { status: DatasetStatus.Live, dataset_id: _.get(dataset, "dataset_id") }, raw: true }) : []
let schema = flattenSchema(_.get(dataset, "data_schema"), denorm_out_field, true);
schema = updateDenormDerived(schema, _.get(transformations, "data.result"), denorm_out_field,);
Expand Down

0 comments on commit 3dd90c3

Please sign in to comment.