Skip to content

Commit

Permalink
fix: renamed instrumentIds key to instrumentId key in convertObsolete…
Browse files Browse the repository at this point in the history
…ToCurrentSchema function
  • Loading branch information
Junjiequan committed Sep 23, 2024
1 parent 1f8c98d commit 9ab8db2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/datasets/datasets.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ export class DatasetsController {
(inputObsoleteDataset as CreateRawDatasetObsoleteDto).sampleId,
];
}
if ("instrumentIds" in inputObsoleteDataset) {
if ("instrumentId" in inputObsoleteDataset) {
propertiesModifier.instrumentIds = [
(inputObsoleteDataset as CreateRawDatasetObsoleteDto).instrumentId,
];
Expand Down Expand Up @@ -557,7 +557,7 @@ export class DatasetsController {
obsoleteDatasetDto,
) as CreateDatasetDto;
const createdDataset = await this.datasetsService.create(datasetDto);

console.log("====createdDataset====", createdDataset);
const outputObsoleteDatasetDto =
this.convertCurrentToObsoleteSchema(createdDataset);

Expand Down
2 changes: 1 addition & 1 deletion src/datasets/dto/update-raw-dataset-obsolete.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class UpdateRawDatasetObsoleteDto extends UpdateDatasetObsoleteDto {
})
@IsOptional()
@IsString()
readonly instrumentId: string;
readonly instrumentId?: string;

@IsOptional()
investigator?: string;
Expand Down

0 comments on commit 9ab8db2

Please sign in to comment.