feat: import listens from spotify extended streaming history (#305)

This commit is contained in:
Julian Tölle 2023-10-01 03:35:02 +02:00 committed by GitHub
parent 23d7ea0995
commit 7140cb0679
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 1051 additions and 215 deletions

View file

@ -1,5 +1,6 @@
export class FindTrackDto {
spotify: {
id: string;
id?: string;
uri?: string;
};
}

View file

@ -175,9 +175,7 @@ export class MusicLibraryService {
}
async findTrack(query: FindTrackDto): Promise<Track | undefined> {
return this.trackRepository.findOneBy({
spotify: { id: query.spotify.id },
});
return this.trackRepository.findOneBy(query);
}
async findTracks(query: FindTrackDto[]): Promise<Track[]> {