Skip to content

Commit 86b5608

Browse files
Merge pull request #2679 from HugoMichard/patch-1
docs(database): fix TypeScript error for UsersService
2 parents e03f072 + e491450 commit 86b5608

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
@@ -180,11 +180,11 @@ export class UsersService {
180180
return this.usersRepository.find();
181181
}
182182

183-
findOne(id: number): Promise<User> {
183+
findOne(id: number): Promise<User | null> {
184184
return this.usersRepository.findOneBy({ id });
185185
}
186186

187-
async remove(id: string): Promise<void> {
187+
async remove(id: number): Promise<void> {
188188
await this.usersRepository.delete(id);
189189
}
190190
}

0 commit comments

Comments
 (0)