Skip to content

Commit a9f86ab

Browse files
feat: 서치 함수 대체키 사용하게 업데이트
1 parent e30f1f5 commit a9f86ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/backend/src/auth/auth.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ export class AuthService {
2121
const user = this.userRepository.create(dto);
2222
return this.userRepository.save(user);
2323
}
24+
25+
async findUserBySnowflakeId(snowflakeId: string): Promise<User | null> {
26+
return await this.userRepository.findOneBy({ snowflakeId });
27+
}
2428
}

0 commit comments

Comments
 (0)