Skip to content

Commit

Permalink
fix: account 조회 버그 픽스
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongHyeon0409 committed Nov 28, 2024
1 parent 222ab19 commit 58c7cdf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/server/src/account/account.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,14 @@ export class AccountRepository extends Repository<Account> {
return userAccount;
}

async getAccount(id: number, queryRunner: QueryRunner): Promise<Account> {
this.logger.log(`계정 조회 시작: userId=${id}`);
async getAccount(accountId: number, queryRunner: QueryRunner): Promise<Account> {
this.logger.log(`계정 조회 시작: userId=${accountId}`);
try {
const account = await queryRunner.manager.findOne(Account, {
where: { user: { id } },
where: { id: accountId },
});

this.logger.log(`계정 조회 완료: userId=${id}`);
this.logger.log(`계정 조회 완료: userId=${accountId}`);
return account;
} catch (error) {
this.logger.error(`계정 조회 실패: ${error.message}`, error.stack);
Expand Down

0 comments on commit 58c7cdf

Please sign in to comment.