diff --git a/services/API-service/src/api/country/country.controller.ts b/services/API-service/src/api/country/country.controller.ts index 72ae1de84..85dec28eb 100644 --- a/services/API-service/src/api/country/country.controller.ts +++ b/services/API-service/src/api/country/country.controller.ts @@ -41,7 +41,7 @@ export class CountryController { summary: 'Add/update notification info for given countries', }) @ApiResponse({ - status: 200, + status: 201, description: 'notification info added or updated', }) @Post('notification-info') diff --git a/services/API-service/src/api/metadata/metadata.service.ts b/services/API-service/src/api/metadata/metadata.service.ts index 551e6f458..6a73d3a49 100644 --- a/services/API-service/src/api/metadata/metadata.service.ts +++ b/services/API-service/src/api/metadata/metadata.service.ts @@ -45,7 +45,7 @@ export class MetadataService { indicatorEntity: IndicatorMetadataEntity, indicator: IndicatorDto, ): Promise { - indicatorEntity.description = JSON.parse( + indicatorEntity.countryDisasterTypes = JSON.parse( JSON.stringify(indicator.countryDisasterTypes || {}), ); indicatorEntity.label = indicator.label;