Skip to content

Commit ba7fed2

Browse files
Merge pull request #2364 from aradwann/docs-techniques-database-fix-code-bug
docs(techniques/database): fix code bug in UserService
2 parents 7e3cb56 + 82cc089 commit ba7fed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class UsersService {
181181
}
182182

183183
findOne(id: string): Promise<User> {
184-
return this.usersRepository.findOne(id);
184+
return this.usersRepository.findOneBy({ id: id });
185185
}
186186

187187
async remove(id: string): Promise<void> {

0 commit comments

Comments
 (0)