From b684ad54d19ee854a510450411ba37e8e2b3132d Mon Sep 17 00:00:00 2001 From: Phill Pover Date: Thu, 3 Apr 2025 11:15:36 +0100 Subject: [PATCH] Fixing song lookup --- backend/src/album/album.service.ts | 2 +- backend/src/song/dto/create-song.dto.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/album/album.service.ts b/backend/src/album/album.service.ts index a5e1cad..9c91ec3 100644 --- a/backend/src/album/album.service.ts +++ b/backend/src/album/album.service.ts @@ -19,7 +19,7 @@ export class AlbumService { findOneById(id: number): Promise { return this.albumRepository.findOne({ where: { id: id }, - relations: ['song'] + relations: ['songId'] }); } diff --git a/backend/src/song/dto/create-song.dto.ts b/backend/src/song/dto/create-song.dto.ts index 7f4387f..3e25dd3 100644 --- a/backend/src/song/dto/create-song.dto.ts +++ b/backend/src/song/dto/create-song.dto.ts @@ -1,4 +1,5 @@ export class CreateSongDto { title: string; duration: number; + albumId: number; }