Skip to content

Commit 80706ee

Browse files
committed
fix: #5
1 parent efed9e0 commit 80706ee

File tree

1 file changed

+1
-1
lines changed
  • src/MDriveSync.Core/Services

1 file changed

+1
-1
lines changed

src/MDriveSync.Core/Services/Job.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ public void JobUpdate(JobConfig cfg)
11611161
}
11621162

11631163
// 禁止作业指向同一目标
1164-
if (!string.IsNullOrWhiteSpace(cfg.Target) && drive.Jobs.Any(x => x.Target == cfg.Target))
1164+
if (!string.IsNullOrWhiteSpace(cfg.Target) && drive.Jobs.Any(x => x.Target == cfg.Target && x.Id != cfg.Id))
11651165
{
11661166
throw new LogicException("多个作业禁止指向云盘同一个目标目录");
11671167
}

0 commit comments

Comments
 (0)