Skip to content

Commit

Permalink
feat: user 제거 기능 추가로 인한 feed 조회 쿼리 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
dbwogus94 committed Nov 16, 2023
1 parent ccb09db commit e5badac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/domain/admin/feed/feed.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class FeedRepositoryImpl
const { page, pageSize, sort, filter } = option;
const qb = this.createQueryBuilder('feed');
qb.select();
qb.innerJoin('feed.user', 'user') //
qb.leftJoin('feed.user', 'user') //
.addSelect(['user.id', 'user.mbtiType', 'user.nickname']);

qb.where('1 = 1');
Expand Down
4 changes: 2 additions & 2 deletions src/domain/feed/repository/feed.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class FeedRepositoryImpl
const centerPoint = this.makeCenterPoint(centerX, centerY);

qb.select();
qb.innerJoin('feed.user', 'user') //
qb.leftJoin('feed.user', 'user') //
.addSelect(['user.id', 'user.mbtiType', 'user.nickname']);
qb.innerJoin('feed.geoMark', 'mark') //
.addSelect(['mark.id', 'mark.region']);
Expand Down Expand Up @@ -86,7 +86,7 @@ export class FeedRepositoryImpl
async findManyByUserId(userId: number): Promise<PureFeed[]> {
const qb = this.createQueryBuilder('feed');
qb.select();
qb.innerJoin('feed.user', 'user') //
qb.leftJoin('feed.user', 'user') //
.addSelect(['user.id', 'user.mbtiType', 'user.nickname']);
qb.innerJoin('feed.geoMark', 'mark') //
.addSelect(['mark.id', 'mark.region']);
Expand Down

0 comments on commit e5badac

Please sign in to comment.