style: auto-fix linting issues

This commit is contained in:
JulienMaille 2026-01-16 22:18:36 +00:00 committed by github-actions[bot]
parent 36d209de88
commit 8759cae36b

View file

@ -343,7 +343,8 @@ export class MusicDatabase {
if (keyPath && !item[keyPath]) {
console.warn(`Item missing keyPath "${keyPath}" in ${storeName}, generating fallback.`);
if (keyPath === 'uuid') item.uuid = crypto.randomUUID();
else if (keyPath === 'id') item.id = item.trackId || item.albumId || item.artistId || Date.now() + Math.random();
else if (keyPath === 'id')
item.id = item.trackId || item.albumId || item.artistId || Date.now() + Math.random();
else if (keyPath === 'timestamp') item.timestamp = Date.now() + Math.random();
}