updated response code to 503 for disabled publishing
This commit is contained in:
parent
f9db87109c
commit
391592f1b8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue