updated response code to 503 for disabled publishing

This commit is contained in:
bill bittner 2018-06-23 13:53:35 -07:00
parent f9db87109c
commit 391592f1b8

View file

@ -24,13 +24,13 @@ const authenticateUser = require('./authentication.js');
const claimPublish = ({ body, files, headers, ip, originalUrl, user }, res) => { const claimPublish = ({ body, files, headers, ip, originalUrl, user }, res) => {
// logging // logging
logger.info('PUBLISH REQUEST:', { logger.info('PUBLISH REQUEST:', {
headers,
ip, ip,
headers,
body, body,
}); });
// check for disabled publishing // check for disabled publishing
if (disabled) { if (disabled) {
return res.status(400).json({ return res.status(503).json({
success: false, success: false,
message: disabledMessage message: disabledMessage
}); });