Skip to content

Commit

Permalink
fix: #5
Browse files Browse the repository at this point in the history
  • Loading branch information
trueai-org committed Jan 19, 2024
1 parent efed9e0 commit 80706ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MDriveSync.Core/Services/Job.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ public void JobUpdate(JobConfig cfg)
}

// 禁止作业指向同一目标
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))
{
throw new LogicException("多个作业禁止指向云盘同一个目标目录");
}
Expand Down

0 comments on commit 80706ee

Please sign in to comment.