...
|
...
|
@@ -29,6 +29,7 @@ func (repo *TaskRepository) TransformToDomain(d *models.Task) *domain.Task { |
|
|
CreatedAt: d.CreatedAt,
|
|
|
UpdatedAt: d.UpdatedAt,
|
|
|
DeletedAt: d.DeletedAt,
|
|
|
CompanyId: d.CompanyId,
|
|
|
Name: d.Name,
|
|
|
Alias: d.Alias,
|
|
|
Leader: d.Leader,
|
...
|
...
|
@@ -38,7 +39,7 @@ func (repo *TaskRepository) TransformToDomain(d *models.Task) *domain.Task { |
|
|
RelatedUser: d.RelatedUser,
|
|
|
RunAt: d.RunAt,
|
|
|
StopAt: d.StopAt,
|
|
|
CompanyId: d.CompanyId,
|
|
|
Anomaly: d.Anomaly,
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -62,6 +63,7 @@ func (repo *TaskRepository) Save(param *domain.Task) error { |
|
|
RunAt: param.RunAt,
|
|
|
CompanyId: param.CompanyId,
|
|
|
StopAt: param.StopAt,
|
|
|
Anomaly: param.Anomaly,
|
|
|
}
|
|
|
db := repo.transactionContext.PgTx
|
|
|
if m.Id == 0 {
|
...
|
...
|
|