From c0d45f627e4a30f02fbbdc6a28f2762b03f7b9bb Mon Sep 17 00:00:00 2001 From: Ellen Kraffmiller Date: Mon, 18 Nov 2024 13:35:58 -0500 Subject: [PATCH] fix datasetVersionDiff mapping logic --- src/dataset/domain/models/Dataset.ts | 3 ++- .../repositories/DatasetJSDataverseRepository.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dataset/domain/models/Dataset.ts b/src/dataset/domain/models/Dataset.ts index de1060206..0d26023f2 100644 --- a/src/dataset/domain/models/Dataset.ts +++ b/src/dataset/domain/models/Dataset.ts @@ -549,7 +549,8 @@ export class Dataset { this.requestedVersion, undefined, this.nextMajorVersionNumber, - this.nextMinorVersionNumber + this.nextMinorVersionNumber, + this.requiresMajorVersionUpdate ) } } diff --git a/src/dataset/infrastructure/repositories/DatasetJSDataverseRepository.ts b/src/dataset/infrastructure/repositories/DatasetJSDataverseRepository.ts index ad65533f7..25fe6876b 100644 --- a/src/dataset/infrastructure/repositories/DatasetJSDataverseRepository.ts +++ b/src/dataset/infrastructure/repositories/DatasetJSDataverseRepository.ts @@ -200,7 +200,8 @@ export class DatasetJSDataverseRepository implements DatasetRepository { requestedVersion, undefined, datasetDetails.latestPublishedVersionMajorNumber, - datasetDetails.latestPublishedVersionMinorNumber + datasetDetails.latestPublishedVersionMinorNumber, + datasetDetails.datasetVersionDiff ) }) .catch((error: ReadError) => {