Skip to content

Commit 2a55f83

Browse files
Update sql.md
1 parent ba7fed2 commit 2a55f83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/techniques/sql.md

Lines changed: 2 additions & 2 deletions
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.findOneBy({ id: id });
184+
return this.usersRepository.findOneBy({ id });
185185
}
186186

187187
async remove(id: string): Promise<void> {
@@ -205,7 +205,7 @@ export class UsersService {
205205
}
206206

207207
findOne(id) {
208-
return this.usersRepository.findOne(id);
208+
return this.usersRepository.findOneBy({ id });
209209
}
210210

211211
async remove(id) {

0 commit comments

Comments
 (0)