فهرست منبع

fix: reorder middreware in customize-setting

NaokiHigashi28 1 سال پیش
والد
کامیت
328166f70d
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      apps/app/src/server/routes/apiv3/customize-setting.js

+ 2 - 2
apps/app/src/server/routes/apiv3/customize-setting.js

@@ -1021,8 +1021,8 @@ module.exports = (crowi) => {
    *                            temporaryUrlExpiredAt: {}
    *                            temporaryUrlCached: {}
    */
-  router.post('/upload-brand-logo', uploads.single('file'), loginRequiredStrictly,
-    adminRequired, validator.logo, apiV3FormValidator, async(req, res) => {
+  router.post('/upload-brand-logo', loginRequiredStrictly, adminRequired,
+    validator.logo, apiV3FormValidator, uploads.single('file'), async(req, res) => {
 
       if (req.file == null) {
         return res.apiv3Err(new ErrorV3('File error.', 'upload-brand-logo-failed'));