Explorar el Código

fix: queueSongs shouldn't initially validate

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan hace 5 años
padre
commit
c39b161a7b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
 				});