fix: message for double branches

This commit is contained in:
Andras Bacsai 2022-07-14 07:42:05 +00:00
parent b735ca2da7
commit 344dd7db28

View File

@ -267,7 +267,7 @@ export async function saveApplicationSettings(request: FastifyRequest<SaveApplic
const { debug, previews, dualCerts, autodeploy, branch, projectId } = request.body
const isDouble = await checkDoubleBranch(branch, projectId);
if (isDouble && autodeploy) {
throw { status: 500, message: 'Application not configured.' }
throw { status: 500, message: 'Cannot activate automatic deployments until only one application is defined for this repository / branch.' }
}
await prisma.application.update({
where: { id },