浏览代码

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) => {
 					(currentSongs, songsToAdd, currentSongIndex, next) => {
 						const newPlaylist = [...currentSongs, ...songsToAdd].map(song => {
 						const newPlaylist = [...currentSongs, ...songsToAdd].map(song => {
 							if (!song._id) song._id = null;
 							if (!song._id) song._id = null;
-							song.requestedAt = Date.now();
+							if (!song.requestedAt) song.requestedAt = Date.now();
 							return song;
 							return song;
 						});
 						});
 						next(null, newPlaylist, currentSongIndex);
 						next(null, newPlaylist, currentSongIndex);