From d5f5efdc7faea80b0f0e0d8a445ffcc41c3cb2fb Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Sun, 19 May 2024 10:02:46 +0000 Subject: [PATCH] [CodeFactor] Apply fixes to commit e4c8cc6 --- src/songs/songs.service.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/songs/songs.service.ts b/src/songs/songs.service.ts index 37495c6..0d95dd4 100644 --- a/src/songs/songs.service.ts +++ b/src/songs/songs.service.ts @@ -74,11 +74,10 @@ export class SongsService { // artTrack이 0이나 빈 문자열로 날라오는 경우 대비 music.videos.artTrack = - music.videos.artTrack === '0' || - music.videos.artTrack === '' + music.videos.artTrack === '0' || music.videos.artTrack === '' ? null : music.videos.artTrack; - + // 장르, 키워드가 빈 문자열로 날라오는 경우 대비 music.genres = music.genres.filter((g) => g !== ''); music.keywords = music.keywords.filter((k) => k !== '');