Skip to content

Commit ac86858

Browse files
committed
fix create/update job fail
1 parent 8f8cd68 commit ac86858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/api/handler/v2/job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,7 @@ func checkUpdateJobInfo(c echo.Context, jobId string, create bool) error {
17881788
if err != nil {
17891789
return fmt.Errorf("consul_addr=%v; connect to consul failed: %v", handler.ConsulAddr, err)
17901790
}
1791-
if storeManager.CheckJobExists(jobId) != create {
1791+
if storeManager.CheckJobExists(jobId) == create {
17921792
return fmt.Errorf("please confirm whether the job [ %v ] already exists", jobId)
17931793
}
17941794
jobInfo, err := storeManager.GetJobInfo(jobId)

0 commit comments

Comments
 (0)