Skip to content

Commit

Permalink
Merge pull request #30 from DevKor-github/refactoring/hoon
Browse files Browse the repository at this point in the history
fix side effect
  • Loading branch information
overthestream authored Apr 11, 2024
2 parents 100bb14 + 7e9a00f commit b2f624a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/event/event.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { Sex } from 'src/common/enums';
import { ArrowInfoResponseDto } from 'src/blurting/dtos/arrowInfoResponse.dto';
import { OtherPeopleInfoDto } from 'src/blurting/dtos/otherPeopleInfo.dto';
import axios from 'axios';
import { UserProfileDto } from 'src/dtos/user.dto';
import { UserProfileDtoWithBlur } from 'src/dtos/user.dto';

@Injectable()
export class EventService {
Expand Down Expand Up @@ -311,7 +311,7 @@ export class EventService {
return null;
}

async getOtherProfile(userId: number): Promise<UserProfileDto> {
async getOtherProfile(userId: number): Promise<UserProfileDtoWithBlur> {
const otherUser = await this.userService.findUserByVal('id', userId);
const userImages = await this.userService.getUserImages(otherUser.id);
return {
Expand Down

0 comments on commit b2f624a

Please sign in to comment.