Explorar el Código

fix: autofilling station queue would reset requestedAt

Kristian Vos hace 3 años
padre
commit
bfc1a9f310
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);