mirror of
https://github.com/caprover/caprover
synced 2026-08-23 16:06:45 +00:00
Merge pull request #2418 from caprover/agent/remove-delete-name-validation
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled
Allow deleting apps with legacy names
This commit is contained in:
@@ -869,16 +869,6 @@ class AppsDataStore {
|
||||
const self = this
|
||||
|
||||
return new Promise<void>(function (resolve, reject) {
|
||||
if (!isNameAllowed(appName)) {
|
||||
reject(
|
||||
ApiStatusCodes.createError(
|
||||
ApiStatusCodes.STATUS_ERROR_BAD_NAME,
|
||||
'App Name is not allowed. Only lowercase letters, numbers and single hyphens are allowed'
|
||||
)
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
if (!self.data.get(`${APP_DEFINITIONS}.${appName}`)) {
|
||||
reject(
|
||||
ApiStatusCodes.createError(
|
||||
|
||||
Reference in New Issue
Block a user