Skip to content

Commit

Permalink
merge: Develop to Master (#84)
Browse files Browse the repository at this point in the history
* refactor: 나도 뭐 한지 몰라용... 이것저것들 수정했어요 (#82)

* fix(db): mongodb의 username 외 2개의 필드를 optional로 수정

* refactor: 몰라요... 이것저것

* feat: 검색 추가

* fix: 테스트 코드 버그 수정

* fix: DB에 멤버 업데이트 안되는 미친 버그 수정

* fix: DB에 멤버 업데이트 안되는 미친 버그 수정
  • Loading branch information
son-daehyeon authored Sep 18, 2024
1 parent 23ce8e2 commit 9613140
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
platforms: linux/amd64
provenance: false
tags: ${{ env.IMAGE_NAME }}-amd64
cache-from: type=registry,ref=${{ env.IMAGE_NAME }}-amd64-cache
cache-to: type=registry,ref=${{ env.IMAGE_NAME }}-amd64-cache
# cache-from: type=registry,ref=${{ env.IMAGE_NAME }}-amd64-cache
# cache-to: type=registry,ref=${{ env.IMAGE_NAME }}-amd64-cache

build-arm64:
runs-on: ubuntu-latest
Expand All @@ -70,8 +70,8 @@ jobs:
platforms: linux/arm64
tags: ${{ env.IMAGE_NAME }}-arm64
provenance: false
cache-from: type=registry,ref=${{ env.IMAGE_NAME }}-arm64-cache
cache-to: type=registry,ref=${{ env.IMAGE_NAME }}-arm64-cache
# cache-from: type=registry,ref=${{ env.IMAGE_NAME }}-arm64-cache
# cache-to: type=registry,ref=${{ env.IMAGE_NAME }}-arm64-cache

merge-image:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
];

Expand Down
4 changes: 1 addition & 3 deletions src/domain/member/service/member.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ export class MemberService {
{ description, github, instagram, blog }: UpdateMyInfoRequestDto,
): Promise<void> {
member.description = description;
member.link.github = github;
member.link.instagram = instagram;
member.link.blog = blog;
member.link = { github, instagram, blog };

await this.memberRepository.save(member);

Expand Down

0 comments on commit 9613140

Please sign in to comment.