Skip to content

Commit 9366f9b

Browse files
committed
fixes
1 parent 866ce06 commit 9366f9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/datasets/domain/useCases/UpdateDataset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class UpdateDataset extends DatasetWriteUseCase<void> {
1818
*
1919
* @param {number | string} [datasetId] - The dataset identifier, which can be a string (for persistent identifiers), or a number (for numeric identifiers).
2020
* @param {DatasetDTO} [updatedDataset] - DatasetDTO object including the updated dataset metadata field values for each metadata block.
21-
* @param {string} [sourceLastUpdateTime] - The lastUpdateTime value from the dataset. Provide it to ensure optimistic concurrency: if the dataset was updated since you retrieved it, the backend can reject the update to prevent overwriting newer changes.
21+
* @param {string} [sourceLastUpdateTime] - The lastUpdateTime value from the dataset. If another user updates the dataset version metadata before you send the update request, data inconsistencies may occur. To prevent this, you can use the optional sourceLastUpdateTime parameter. This parameter must include the lastUpdateTime value corresponding to the dataset version being updated.
2222
* @returns {Promise<void>} - This method does not return anything upon successful completion.
2323
* @throws {ResourceValidationError} - If there are validation errors related to the provided information.
2424
* @throws {ReadError} - If there are errors while reading data.

test/testHelpers/datasets/datasetPreviewHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const createDatasetPreviewModel = (): DatasetPreview => {
2525
minorNumber: 0,
2626
state: DatasetVersionState.RELEASED,
2727
createTime: new Date(DATASET_CREATE_TIME_STR),
28-
lastUpdateTime: new Date(DATASET_UPDATE_TIME_STR),
28+
lastUpdateTime: DATASET_UPDATE_TIME_STR,
2929
releaseTime: new Date(DATASET_RELEASE_TIME_STR)
3030
},
3131
citation: DATASET_CITATION_HTML,

0 commit comments

Comments
 (0)