mirror of
https://github.com/apricote/Listory.git
synced 2026-02-07 10:17:02 +00:00
chore(api): update dependencies
This commit is contained in:
parent
05f230a7ce
commit
d881a78757
37 changed files with 4804 additions and 2700 deletions
|
|
@ -4,7 +4,7 @@ import {
|
|||
Column,
|
||||
ManyToMany,
|
||||
JoinTable,
|
||||
OneToMany
|
||||
OneToMany,
|
||||
} from "typeorm";
|
||||
import { SpotifyLibraryDetails } from "src/sources/spotify/spotify-library-details.entity";
|
||||
import { Artist } from "./artist.entity";
|
||||
|
|
@ -18,19 +18,13 @@ export class Album {
|
|||
@Column()
|
||||
name: string;
|
||||
|
||||
@ManyToMany(
|
||||
type => Artist,
|
||||
artist => artist.albums
|
||||
)
|
||||
@ManyToMany((type) => Artist, (artist) => artist.albums)
|
||||
@JoinTable()
|
||||
artists: Artist[];
|
||||
|
||||
@OneToMany(
|
||||
type => Track,
|
||||
track => track.album
|
||||
)
|
||||
@OneToMany((type) => Track, (track) => track.album)
|
||||
tracks: Track[];
|
||||
|
||||
@Column(type => SpotifyLibraryDetails)
|
||||
@Column((type) => SpotifyLibraryDetails)
|
||||
spotify: SpotifyLibraryDetails;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue