Преглед на файлове

fix: autofilling station queue would reset requestedAt

Kristian Vos преди 3 години
родител
ревизия
bfc1a9f310
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      backend/logic/stations.js

+ 1 - 1
backend/logic/stations.js

@@ -558,7 +558,7 @@ class _StationsModule extends CoreClass {
 					(currentSongs, songsToAdd, currentSongIndex, next) => {
 						const newPlaylist = [...currentSongs, ...songsToAdd].map(song => {
 							if (!song._id) song._id = null;
-							song.requestedAt = Date.now();
+							if (!song.requestedAt) song.requestedAt = Date.now();
 							return song;
 						});
 						next(null, newPlaylist, currentSongIndex);