Переглянути джерело

Merge pull request #77 from fosrl/hotfix-2

remove double createHttpError
Milo Schwartz 6 місяців тому
батько
коміт
d27ecaae5e
1 змінених файлів з 1 додано та 4 видалено
  1. 1 4
      server/routers/resource/authWithPincode.ts

+ 1 - 4
server/routers/resource/authWithPincode.ts

@@ -109,10 +109,7 @@ export async function authWithPincode(
             return next(
                 createHttpError(
                     HttpCode.UNAUTHORIZED,
-                    createHttpError(
-                        HttpCode.BAD_REQUEST,
-                        "Resource has no pincode protection"
-                    )
+                    "Resource has no pincode protection"
                 )
             );
         }