Bugfix double sending headers on return from create model, e.g. if board already exists

indiachan-spamvector
Thomas Lynch 2 years ago
parent 4a00a3fc81
commit 962481845d
  1. 2
      controllers/forms/create.js
  2. 2
      models/forms/create.js

@ -41,8 +41,6 @@ module.exports = {
return next(err);
}
return res.redirect(`/${req.body.uri}/index.html`);
}
};

@ -73,4 +73,6 @@ module.exports = async (req, res) => {
ensureDir(`${uploadDirectory}/asset/${uri}`),
]);
return res.redirect(`/${req.body.uri}/index.html`);
};

Loading…
Cancel
Save