浏览代码

Fixed invalid thumbnail on songs

Owen Diffey 8 年之前
父节点
当前提交
5633456bd6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/logic/db/index.js

+ 1 - 1
backend/logic/db/index.js

@@ -153,7 +153,7 @@ let lib = {
 			lib.schemas.queueSong.path('genres').validate(songGenres, 'Invalid genres.');
 
 			lib.schemas.song.path('thumbnail').validate((thumbnail) => {
-				return isLength(thumbnail, 8, 256);
+				return isLength(thumbnail, 0, 256);
 			}, 'Invalid thumbnail.');
 			lib.schemas.queueSong.path('thumbnail').validate((thumbnail) => {
 				return isLength(thumbnail, 0, 256);