Skip to content

Commit

Permalink
merge #309: postings와 postings/mine 응답 시 user 프로필 사진 이미지 URL 반환하도록 수정
Browse files Browse the repository at this point in the history
[fix] postings와 postings/mine 응답 시 user 프로필 사진 이미지 URL 반환하도록 수정
  • Loading branch information
yaongmeow authored Dec 8, 2023
2 parents 2c631a9 + f69627c commit a08cf5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion BE/src/postings/postings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ export class PostingsService {
writer: {
id: posting.u_id,
name: posting.u_name,
avatar: posting.u_avatar,
avatar: posting.u_avatar
? await this.storageService.getImageUrl(posting.u_avatar)
: null,
},
likeds: posting.likeds,
reports: posting.reports,
Expand Down
8 changes: 7 additions & 1 deletion BE/src/postings/postings.swagger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ export const findOne_OK = {
id: '000056789012345678901234567890123456',
name: 'pong',
avatar: null,
resourceId: 'km',
resourceId: 'temp111',
socialType: 1,
email: '[email protected]',
allowedIp: ['아이피', '아이피'],
bannedIp: ['아이피', '아이피'],
},
likeds: 2,
reports: 0,
Expand Down Expand Up @@ -122,6 +125,9 @@ export const remove_OK = {
avatar: null,
resourceId: 'temp',
socialType: 1,
email: '[email protected]',
allowedIp: ['아이피', '아이피'],
bannedIp: ['아이피', '아이피'],
},
likeds: [],
reports: [],
Expand Down

0 comments on commit a08cf5f

Please sign in to comment.