diff --git a/api/apps/api/src/modules/published-project/dto/update-published-project.dto.ts b/api/apps/api/src/modules/published-project/dto/update-published-project.dto.ts index aef6d6a2cb..4f042664c0 100644 --- a/api/apps/api/src/modules/published-project/dto/update-published-project.dto.ts +++ b/api/apps/api/src/modules/published-project/dto/update-published-project.dto.ts @@ -1,8 +1,8 @@ import { ApiPropertyOptional } from '@nestjs/swagger'; import { IsBoolean, IsOptional } from 'class-validator'; -import { CreatePublishProjectDto } from './publish-project.dto'; +import { PublishProjectDto } from './publish-project.dto'; -export class UpdatePublishedProjectDto extends CreatePublishProjectDto { +export class UpdatePublishedProjectDto extends PublishProjectDto { @IsBoolean() @IsOptional() @ApiPropertyOptional() diff --git a/api/apps/api/src/modules/published-project/published-project.service.ts b/api/apps/api/src/modules/published-project/published-project.service.ts index eb4bc0e27f..934ce8193e 100644 --- a/api/apps/api/src/modules/published-project/published-project.service.ts +++ b/api/apps/api/src/modules/published-project/published-project.service.ts @@ -116,7 +116,7 @@ export class PublishedProjectService { if (isLeft(result)) { console.info( - `Scenario snapshot could not be generated for scenario ${featuredScenarioId}`, + `Map snapshot could not be generated for scenario ${featuredScenarioId} of project ${id}`, ); } @@ -193,7 +193,7 @@ export class PublishedProjectService { if (isLeft(result)) { console.info( - `Scenario snapshot could not be generated for scenario ${featuredScenarioId}`, + `Scenario snapshot could not be generated for scenario ${featuredScenarioId} of project ${projectId}`, ); } diff --git a/api/apps/api/src/utils/webshot.utils.ts b/api/apps/api/src/utils/webshot.utils.ts index 8b91472226..4d457b21cb 100644 --- a/api/apps/api/src/utils/webshot.utils.ts +++ b/api/apps/api/src/utils/webshot.utils.ts @@ -23,9 +23,6 @@ export const getScenarioSnapshot = async ( ); if (isLeft(pngData)) { - console.info( - `Map screenshot for public project ${projectId} could not be generated`, - ); return left(imgGenerationError); }