fix(region): skip account check

This commit is contained in:
ioito
2022-10-13 16:59:18 +08:00
parent 7c9e7aaa85
commit 2e017dbffe
+1 -1
View File
@@ -513,7 +513,7 @@ func (manager *SCloudaccountManager) validateCreateData(
}
// check accountId uniqueness
if len(accountId) > 0 {
if len(accountId) > 0 && !input.SkipDuplicateAccountCheck {
cnt, err := manager.Query().Equals("account_id", accountId).CountWithError()
if err != nil {
return input, httperrors.NewInternalServerError("check account_id duplication error %s", err)