We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efed9e0 commit 80706eeCopy full SHA for 80706ee
src/MDriveSync.Core/Services/Job.cs
@@ -1161,7 +1161,7 @@ public void JobUpdate(JobConfig cfg)
1161
}
1162
1163
// 禁止作业指向同一目标
1164
- if (!string.IsNullOrWhiteSpace(cfg.Target) && drive.Jobs.Any(x => x.Target == cfg.Target))
+ if (!string.IsNullOrWhiteSpace(cfg.Target) && drive.Jobs.Any(x => x.Target == cfg.Target && x.Id != cfg.Id))
1165
{
1166
throw new LogicException("多个作业禁止指向云盘同一个目标目录");
1167
0 commit comments