diff --git a/backend/src/album/dto/update-album.dto.ts b/backend/src/album/dto/update-album.dto.ts index 66de78c..8b38f2e 100644 --- a/backend/src/album/dto/update-album.dto.ts +++ b/backend/src/album/dto/update-album.dto.ts @@ -1,6 +1,7 @@ -import { IsNotEmpty, IsString } from 'class-validator'; +import { IsNotEmpty, IsNumber, IsString } from 'class-validator'; export class UpdateAlbumDto { + @IsNumber() id: number; @IsString() diff --git a/frontend/src/app/actions.tsx b/frontend/src/app/actions.tsx index 2d75d17..5c38806 100644 --- a/frontend/src/app/actions.tsx +++ b/frontend/src/app/actions.tsx @@ -58,6 +58,7 @@ export async function createAlbum(formData: FormData) { const title = formData.get('title'); const artist = formData.get('artist'); const genre = formData.get('genre'); + console.log(title, artist, genre); return fetch("https://api.anatid.net/album/", { method: "POST", headers: { "Content-Type": "application/json" },