Skip to content

Commit

Permalink
chore(server&web) the number of database copies can be changed
Browse files Browse the repository at this point in the history
  • Loading branch information
HUAHUAI23 committed Jun 7, 2024
1 parent f01e0df commit a67d843
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/src/application/application.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,12 @@ export class ApplicationController {
if (
dto.dedicatedDatabase?.replicas &&
origin.resource.dedicatedDatabase?.replicas &&
dto.dedicatedDatabase?.replicas !==
dto.dedicatedDatabase?.replicas <
origin.resource.dedicatedDatabase?.replicas
) {
return ResponseUtil.error('cannot change database replicas')
return ResponseUtil.error(
'To reduce the number of database replicas, please contact customer support.',
)
}

// check if a user exceeds the resource limit in a region
Expand Down

0 comments on commit a67d843

Please sign in to comment.