fix(测试跟踪): 没有缺陷的时候点击同步会一直显示同步中

--bug=1019986 --user=陈建星 【测试跟踪】开源版-缺陷管理-同步禅道缺陷-一直处于加载状态+github#19856 https://www.tapd.cn/55049933/s/1300005
This commit is contained in:
chenjianxing 2022-11-22 10:59:26 +08:00 committed by jianxing
parent 8aebb6a4f5
commit a1cdb64705
1 changed files with 1 additions and 0 deletions

View File

@ -942,6 +942,7 @@ public class IssuesService {
List<IssuesDao> issues = extIssuesMapper.getIssueForSync(projectId, project.getPlatform()); List<IssuesDao> issues = extIssuesMapper.getIssueForSync(projectId, project.getPlatform());
if (CollectionUtils.isEmpty(issues)) { if (CollectionUtils.isEmpty(issues)) {
deleteSyncKey(projectId);
return true; return true;
} }