mirror of
https://github.com/apricote/Listory.git
synced 2026-02-07 18:27:03 +00:00
chore(deps): update typeorm
This commit is contained in:
parent
9900bc641d
commit
ef84800ce8
22 changed files with 232 additions and 242 deletions
|
|
@ -28,8 +28,8 @@ export class MusicLibraryService {
|
|||
) {}
|
||||
|
||||
async findArtist(query: FindArtistDto): Promise<Artist | undefined> {
|
||||
return this.artistRepository.findOne({
|
||||
where: { spotify: { id: query.spotify.id } },
|
||||
return this.artistRepository.findOneBy({
|
||||
spotify: { id: query.spotify.id },
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -81,8 +81,8 @@ export class MusicLibraryService {
|
|||
}
|
||||
|
||||
async findAlbum(query: FindAlbumDto): Promise<Album | undefined> {
|
||||
return this.albumRepository.findOne({
|
||||
where: { spotify: { id: query.spotify.id } },
|
||||
return this.albumRepository.findOneBy({
|
||||
spotify: { id: query.spotify.id },
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -112,8 +112,8 @@ export class MusicLibraryService {
|
|||
}
|
||||
|
||||
async findGenre(query: FindGenreDto): Promise<Genre | undefined> {
|
||||
return this.genreRepository.findOne({
|
||||
where: { name: query.name },
|
||||
return this.genreRepository.findOneBy({
|
||||
name: query.name,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -141,8 +141,8 @@ export class MusicLibraryService {
|
|||
}
|
||||
|
||||
async findTrack(query: FindTrackDto): Promise<Track | undefined> {
|
||||
return this.trackRepository.findOne({
|
||||
where: { spotify: { id: query.spotify.id } },
|
||||
return this.trackRepository.findOneBy({
|
||||
spotify: { id: query.spotify.id },
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue