File tree Expand file tree Collapse file tree 1 file changed +17
-14
lines changed Expand file tree Collapse file tree 1 file changed +17
-14
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable @typescript-eslint/no-explicit-any */
2+ import { HttpService } from "@nestjs/axios" ;
23import {
3- Controller ,
4- Get ,
5- Post ,
4+ BadRequestException ,
65 Body ,
7- Patch ,
8- Param ,
6+ Controller ,
97 Delete ,
10- UseGuards ,
11- Query ,
8+ Get ,
129 HttpException ,
1310 HttpStatus ,
1411 NotFoundException ,
15- BadRequestException ,
12+ Param ,
13+ Patch ,
14+ Post ,
15+ Query ,
16+ UseGuards ,
1617} from "@nestjs/common" ;
17- import { PublishedDataService } from "./published-data.service" ;
18- import { CreatePublishedDataDto } from "./dto/create-published-data.dto" ;
19- import {
20- PartialUpdatePublishedDataDto ,
21- UpdatePublishedDataDto ,
22- } from "./dto/update-published-data.dto" ;
18+ import { ConfigService } from "@nestjs/config" ;
2319import {
2420 ApiBearerAuth ,
2521 ApiBody ,
@@ -96,6 +92,13 @@ export class PublishedDataController {
9692 datasetPids : inputObsoletePublishedData . pidArray ,
9793 } ;
9894
95+ if (
96+ "doi" in inputObsoletePublishedData &&
97+ typeof inputObsoletePublishedData . doi === "string"
98+ ) {
99+ propertiesModifier . doi = inputObsoletePublishedData . doi ;
100+ }
101+
99102 if ( "affiliation" in inputObsoletePublishedData ) {
100103 propertiesModifier . metadata . affiliation =
101104 inputObsoletePublishedData . affiliation ;
You can’t perform that action at this time.
0 commit comments