Skip to content

Commit

Permalink
✨ idk
Browse files Browse the repository at this point in the history
KMUlee committed Apr 29, 2024
1 parent aa70351 commit 1c4f501
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/profile/profile.service.ts
Original file line number Diff line number Diff line change
@@ -96,4 +96,16 @@ export class ProfileService {
);
}
}

async getProfileById(id: number): Promise<ProfileDto> {
const profile = await this.profileRepository.findOne({
where: {
id,
},
});
if (!profile) {
throw new HttpException('Profile not found', HttpStatus.NOT_FOUND);
}
return profile;
}
}

0 comments on commit 1c4f501

Please sign in to comment.