Skip to content

Commit

Permalink
fixes ✌️
Browse files Browse the repository at this point in the history
  • Loading branch information
hiaaryan committed Dec 31, 2024
1 parent c7c0a88 commit b1091eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main/helpers/db/connectDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ export const updatePlaylist = async (data: any) => {
description = "An epic playlist created by you.";
}

if (data.coverArt) {
cover = data.data.coverArt;
if (data.cover) {
cover = data.data.cover;
} else {
cover = "/coverArt.png";
cover = "/cover.png";
}

const playlist = await db
Expand Down Expand Up @@ -361,13 +361,13 @@ export const initializeData = async (musicFolder: string) => {
metadata.common.artist ||
"Various Artists",
year: metadata.common.year,
coverArt: artPath,
cover: artPath,
})
.returning();

album = newAlbum;
} else {
// @hiaaryan: Update Album if Artist or CoverArt is different
// @hiaaryan: Update Album if Artist or Cover is different
if (
album.artist !==
(metadata.common.albumartist || metadata.common.artist) ||
Expand Down

0 comments on commit b1091eb

Please sign in to comment.