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

This commit is contained in:
Phill Pover 2025-04-07 13:37:05 +01:00
parent d848973e19
commit b426187753

View File

@ -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',