diff --git a/server/middlewares/checkIfExist.js b/server/middlewares/checkIfExist.js index aa3bcd466c3..b38cdcd093a 100644 --- a/server/middlewares/checkIfExist.js +++ b/server/middlewares/checkIfExist.js @@ -55,9 +55,7 @@ module.exports = async (ctx, next) => { ctx.body = { exist: true } } catch (error) { - if (error.code === 404) { - ctx.body = { exist: false } - } + ctx.body = { exist: false } } } else { return await next()