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