mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
fix: unable to sync files and save data issues
This commit is contained in:
@@ -17,7 +17,6 @@ import (
|
||||
type ServiceV2 struct {
|
||||
// dependencies
|
||||
nodeCfgSvc interfaces.NodeConfigService
|
||||
modelSvc service.ModelService
|
||||
|
||||
// internals
|
||||
mu sync.Mutex
|
||||
@@ -64,7 +63,7 @@ func (svc *ServiceV2) getResultService(id primitive.ObjectID) (resultSvc interfa
|
||||
}
|
||||
|
||||
// task
|
||||
t, err := svc.modelSvc.GetTaskById(id)
|
||||
t, err := service.NewModelServiceV2[models.TaskV2]().GetById(id)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user