Adding error handling
Some checks failed
Music Collection CI Workflow / test (./backend) (push) Failing after 27s
Music Collection CI Workflow / test (./frontend) (push) Successful in 38s
Music Collection CI Workflow / deploy (push) Has been skipped
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Has been skipped
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Has been skipped
Some checks failed
Music Collection CI Workflow / test (./backend) (push) Failing after 27s
Music Collection CI Workflow / test (./frontend) (push) Successful in 38s
Music Collection CI Workflow / deploy (push) Has been skipped
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Has been skipped
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Has been skipped
This commit is contained in:
parent
eb594e79d2
commit
040675bb5d
@ -1,5 +1,13 @@
|
|||||||
export class CreateAlbumDto {
|
export class CreateAlbumDto {
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
title: string;
|
title: string;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
artist: string;
|
artist: string;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
genre: string;
|
genre: string;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,20 @@
|
|||||||
export class UpdateAlbumDto {
|
export class UpdateAlbumDto {
|
||||||
|
@Column()
|
||||||
|
@IsNumber()
|
||||||
id: number;
|
id: number;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
title: string;
|
title: string;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
artist: string;
|
artist: string;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
genre: string;
|
genre: string;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,21 @@
|
|||||||
|
import { Entity, Column, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
|
||||||
|
import { IsNotEmpty, IsNumber, IsString } from 'class-validator';
|
||||||
|
|
||||||
export class CreateSongDto {
|
export class CreateSongDto {
|
||||||
|
@Column({ unique: true })
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
title: string;
|
title: string;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@IsNumber()
|
||||||
duration: number;
|
duration: number;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@IsNumber()
|
||||||
trackNumber: number;
|
trackNumber: number;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@IsNumber()
|
||||||
albumId: number;
|
albumId: number;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,22 @@
|
|||||||
export class UpdateSongDto {
|
export class UpdateSongDto {
|
||||||
|
@Column()
|
||||||
|
@IsNumber()
|
||||||
id: number;
|
id: number;
|
||||||
|
|
||||||
|
@Column({ unique: true })
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
title: string;
|
title: string;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@IsNumber()
|
||||||
duration: number;
|
duration: number;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@IsNumber()
|
||||||
trackNumber: number;
|
trackNumber: number;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@IsNumber()
|
||||||
albumId: number;
|
albumId: number;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user