Skip to content

Commit

Permalink
feat: fixes wrong import, removes redundant error
Browse files Browse the repository at this point in the history
  • Loading branch information
rubvalave authored and hotzevzl committed Apr 29, 2022
1 parent 2f3afe9 commit 0157be5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
);
}

Expand Down Expand Up @@ -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}`,
);
}

Expand Down
3 changes: 0 additions & 3 deletions api/apps/api/src/utils/webshot.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0157be5

Please sign in to comment.