diff --git a/src/domain/activity/common/util/scheduler/purge-unused-image.job.ts b/src/domain/activity/common/util/scheduler/purge-unused-image.job.ts index 607f267..9a6eee7 100644 --- a/src/domain/activity/common/util/scheduler/purge-unused-image.job.ts +++ b/src/domain/activity/common/util/scheduler/purge-unused-image.job.ts @@ -36,13 +36,19 @@ export class PurgeUnusedImageJob { ...(await this.projectRepository.findAll()) .map((project) => project.content) .flatMap((content) => this.toImagesFromHtml(content)) + + .filter((key) => !key.startsWith('data:image')) .map((image) => this.activityService.extractKeyFromUrl(image)), ...(await this.projectRepository.findAll()) .map((project) => project.image) + + .filter((key) => !key.startsWith('data:image')) .map((image) => this.activityService.extractKeyFromUrl(image)), ...(await this.socialRepository.findAll()) .flatMap((social) => social.contents) .map((content) => content.image) + + .filter((key) => !key.startsWith('data:image')) .map((image) => this.activityService.extractKeyFromUrl(image)), ]; diff --git a/src/domain/member/service/member.service.ts b/src/domain/member/service/member.service.ts index 4f1f6c9..a1599af 100644 --- a/src/domain/member/service/member.service.ts +++ b/src/domain/member/service/member.service.ts @@ -47,7 +47,6 @@ export class MemberService { member: Member, { description, github, instagram, blog }: UpdateMyInfoRequestDto, ): Promise { - console.log(description, github, instagram, blog); member.description = description; member.link = { github, instagram, blog };