mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 04:46:18 +00:00
fix: message for double branches
This commit is contained in:
1 parent
b735ca2da7
commit
344dd7db28
1 file changed
+1
-1
@@ -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 },
|
||||
|
||||
Reference in new issue
Block a user