fix(配额管理): 接口测试数量配额检查问题

--bug=1012443 --user=李玉号
【系统设置】系统设置-工作空间-配额管理,接口测试数量未超过配额限制,添加场景/接口时提示超过限额
https://www.tapd.cn/55049933/s/1140714
This commit is contained in:
shiziyuan9527 2022-04-20 14:27:57 +08:00 committed by shiziyuan9527
parent 9cb556c484
commit 0943e99e75
2 changed files with 0 additions and 2 deletions

View File

@ -342,7 +342,6 @@ public class ApiAutomationService {
} }
public ApiScenario update(SaveApiScenarioRequest request, List<MultipartFile> bodyFiles, List<MultipartFile> scenarioFiles) { public ApiScenario update(SaveApiScenarioRequest request, List<MultipartFile> bodyFiles, List<MultipartFile> scenarioFiles) {
checkQuota();
checkNameExist(request); checkNameExist(request);
checkScenarioNum(request); checkScenarioNum(request);

View File

@ -334,7 +334,6 @@ public class ApiDefinitionService {
} }
public ApiDefinitionWithBLOBs update(SaveApiDefinitionRequest request, List<MultipartFile> bodyFiles) { public ApiDefinitionWithBLOBs update(SaveApiDefinitionRequest request, List<MultipartFile> bodyFiles) {
checkQuota();
if (request.getRequest() != null) { if (request.getRequest() != null) {
deleteFileByTestId(request.getRequest().getId()); deleteFileByTestId(request.getRequest().getId());
} }