From f21cd6f2c53ef38047438f985db939f742989944 Mon Sep 17 00:00:00 2001 From: jannisvisser Date: Mon, 18 Sep 2023 16:05:00 +0200 Subject: [PATCH] fix: update indicator metadata AB#23677 --- services/API-service/src/api/country/country.controller.ts | 2 +- services/API-service/src/api/metadata/metadata.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;