Sfoglia il codice sorgente

fix: queueSongs shouldn't initially validate

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 5 anni fa
parent
commit
c39b161a7b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      backend/logic/actions/queueSongs.js

+ 1 - 1
backend/logic/actions/queueSongs.js

@@ -178,7 +178,7 @@ let lib = {
 			},*/
 			(newSong, next) => {
 				const song = new db.models.queueSong(newSong);
-				song.save((err, song) => {
+				song.save({ validateBeforeSave: false }, (err, song) => {
 					if (err) return next(err);
 					next(null, song);
 				});