Checking API calls
All checks were successful
Music Collection CI Workflow / test (./backend) (push) Successful in 38s
Music Collection CI Workflow / test (./frontend) (push) Successful in 39s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Successful in 53s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Successful in 1m49s
Music Collection CI Workflow / deploy (push) Successful in 24s
All checks were successful
Music Collection CI Workflow / test (./backend) (push) Successful in 38s
Music Collection CI Workflow / test (./frontend) (push) Successful in 39s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Successful in 53s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Successful in 1m49s
Music Collection CI Workflow / deploy (push) Successful in 24s
This commit is contained in:
parent
d848973e19
commit
b426187753
@ -1,5 +1,5 @@
|
|||||||
import { Entity, Column, OneToMany, PrimaryGeneratedColumn } from 'typeorm';
|
import { Entity, Column, OneToMany, PrimaryGeneratedColumn } from 'typeorm';
|
||||||
import { IsNotEmpty, IsString } from 'class-validator';
|
import { IsNotEmpty, IsString, IsOptional } from 'class-validator';
|
||||||
import { Song } from '../song/song.entity';
|
import { Song } from '../song/song.entity';
|
||||||
|
|
||||||
@Entity('album')
|
@Entity('album')
|
||||||
@ -22,6 +22,7 @@ export class Album {
|
|||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
genre: string;
|
genre: string;
|
||||||
|
|
||||||
|
@IsOptional()
|
||||||
@OneToMany(() => Song, (song) => song.album, {
|
@OneToMany(() => Song, (song) => song.album, {
|
||||||
eager: true,
|
eager: true,
|
||||||
onDelete: 'CASCADE',
|
onDelete: 'CASCADE',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user