mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
chore(deps): update typeorm
This commit is contained in:
parent
9900bc641d
commit
ef84800ce8
22 changed files with 232 additions and 242 deletions
|
|
@ -9,7 +9,7 @@ export class UsersService {
|
|||
constructor(private readonly userRepository: UserRepository) {}
|
||||
|
||||
async findById(id: string): Promise<User> {
|
||||
const user = await this.userRepository.findOne(id);
|
||||
const user = await this.userRepository.findOneBy({ id });
|
||||
|
||||
if (!user) {
|
||||
throw new NotFoundException("UserNotFound");
|
||||
|
|
@ -23,8 +23,8 @@ export class UsersService {
|
|||
}
|
||||
|
||||
async createOrUpdate(data: CreateOrUpdateDto): Promise<User> {
|
||||
let user = await this.userRepository.findOne({
|
||||
where: { spotify: { id: data.spotify.id } },
|
||||
let user = await this.userRepository.findOneBy({
|
||||
spotify: { id: data.spotify.id },
|
||||
});
|
||||
|
||||
if (!user) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue