diff --git a/.gitea/workflows/workflow.yaml b/.gitea/workflows/workflow.yaml index eaf0138..d139244 100644 --- a/.gitea/workflows/workflow.yaml +++ b/.gitea/workflows/workflow.yaml @@ -28,9 +28,9 @@ jobs: # - name: Run lint # run: npm run lint # working-directory: ./${{ matrix.workingdir }} - # - name: Run tests - # run: npm run test - # working-directory: ./${{ matrix.workingdir }} + - name: Run tests + run: npm run test + working-directory: ./${{ matrix.workingdir }} build-and-push-images: needs: test diff --git a/backend/src/album/album.controller.ts b/backend/src/album/album.controller.ts index 110d1bc..face353 100644 --- a/backend/src/album/album.controller.ts +++ b/backend/src/album/album.controller.ts @@ -24,7 +24,7 @@ export class AlbumController { return this.albumService.create(createAlbumDto); } - @Put() + @Put(':id') async update(@Param('id') id: number, @Body() updateAlbumDto: UpdateAlbumDto): Promise { return this.albumService.update(id, updateAlbumDto); } diff --git a/backend/src/song/song.controller.ts b/backend/src/song/song.controller.ts index df0ff9f..7eb794a 100644 --- a/backend/src/song/song.controller.ts +++ b/backend/src/song/song.controller.ts @@ -24,7 +24,7 @@ export class SongController { return this.songService.create(createSongDto); } - @Put() + @Put(':id') async update(@Param('id') id: number, @Body() updateSongDto: UpdateSongDto): Promise { return this.songService.update(id, updateSongDto); }