소스 검색

fix: Unable to update station settings

Owen Diffey 2 년 전
부모
커밋
b908b0cf41
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      backend/logic/actions/stations.js

+ 3 - 2
backend/logic/actions/stations.js

@@ -1395,9 +1395,10 @@ export default {
 						.catch(next);
 				},
 
-				async () => {
+				next => {
 					if (newStation.requests.autorequestLimit > newStation.requests.limit)
-						throw new Error("The autorequest limit cannot be higher than the request limit.");
+						next("The autorequest limit cannot be higher than the request limit.");
+					else next();
 				},
 
 				next => {