...
|
...
|
@@ -21,9 +21,6 @@ func NewNodeTaskRepository(transactionContext *pgTransaction.TransactionContext) |
|
|
}
|
|
|
|
|
|
func (repo *NodeTaskRepository) TransformToDomain(m *models.NodeTask) domain.NodeTask {
|
|
|
timeStart := m.TimeStart.Local()
|
|
|
timeEnd := m.TimeEnd.Local()
|
|
|
nextSentAt := m.NextSentAt.Local()
|
|
|
return domain.NodeTask{
|
|
|
Id: m.Id,
|
|
|
CompanyId: m.CompanyId,
|
...
|
...
|
@@ -34,10 +31,10 @@ func (repo *NodeTaskRepository) TransformToDomain(m *models.NodeTask) domain.Nod |
|
|
NodeName: m.NodeName,
|
|
|
NodeDescribe: m.NodeDescribe,
|
|
|
NodeSort: m.NodeSort,
|
|
|
TimeStart: &timeStart,
|
|
|
TimeEnd: &timeEnd,
|
|
|
TimeStart: m.TimeStart,
|
|
|
TimeEnd: m.TimeEnd,
|
|
|
KpiCycle: m.KpiCycle,
|
|
|
NextSentAt: &nextSentAt,
|
|
|
NextSentAt: m.NextSentAt,
|
|
|
CreatedAt: m.CreatedAt.Local(),
|
|
|
UpdatedAt: m.UpdatedAt.Local(),
|
|
|
DeletedAt: m.DeletedAt,
|
...
|
...
|
|