refactor(webhook): change autodeploy message

This commit is contained in:
Mauricio Siu 2024-07-21 01:36:41 -06:00
parent 6be6ec940a
commit f6128bdf0c
2 changed files with 6 additions and 2 deletions

View File

@ -27,7 +27,9 @@ export default async function handler(
return; return;
} }
if (!application?.autoDeploy) { if (!application?.autoDeploy) {
res.status(400).json({ message: "Application Not Deployable" }); res.status(400).json({
message: "Automatic deployments are disabled for this application",
});
return; return;
} }

View File

@ -32,7 +32,9 @@ export default async function handler(
return; return;
} }
if (!composeResult?.autoDeploy) { if (!composeResult?.autoDeploy) {
res.status(400).json({ message: "Compose Not Deployable" }); res.status(400).json({
message: "Automatic deployments are disabled for this compose",
});
return; return;
} }