diff --git a/internal/application/commands/apply_sync_batch_test.go b/internal/application/commands/apply_sync_batch_test.go index bc9e52d..934ffe5 100644 --- a/internal/application/commands/apply_sync_batch_test.go +++ b/internal/application/commands/apply_sync_batch_test.go @@ -13,9 +13,9 @@ import ( ) type mockHabitRepoForBatch struct { - habits map[string]*entities.Habit - createFunc func(ctx context.Context, habit *entities.Habit) error - updateFunc func(ctx context.Context, habit *entities.Habit) error + habits map[string]*entities.Habit + createFunc func(ctx context.Context, habit *entities.Habit) error + updateFunc func(ctx context.Context, habit *entities.Habit) error softDeleteFunc func(ctx context.Context, id string) error } diff --git a/internal/infrastructure/http/dto.go b/internal/infrastructure/http/dto.go index 086e1dc..c21ecd7 100644 --- a/internal/infrastructure/http/dto.go +++ b/internal/infrastructure/http/dto.go @@ -124,12 +124,12 @@ type SyncHabitDTO struct { } type SyncHabitEntryDTO struct { - ID string `json:"id"` - HabitID string `json:"habit_id"` - ScheduledDate time.Time `json:"scheduled_date"` - CompletedAt time.Time `json:"completed_at"` - Value *float64 `json:"value,omitempty"` - UpdatedAt time.Time `json:"updated_at"` + ID string `json:"id"` + HabitID string `json:"habit_id"` + ScheduledDate time.Time `json:"scheduled_date"` + CompletedAt time.Time `json:"completed_at"` + Value *float64 `json:"value,omitempty"` + UpdatedAt time.Time `json:"updated_at"` } type HabitChangesDTO struct { diff --git a/internal/infrastructure/http/sync_handlers.go b/internal/infrastructure/http/sync_handlers.go index bee7cad..15fa912 100644 --- a/internal/infrastructure/http/sync_handlers.go +++ b/internal/infrastructure/http/sync_handlers.go @@ -13,9 +13,9 @@ import ( ) type SyncHandlers struct { - getSyncChangesHandler *queries.GetSyncChangesHandler - applySyncBatchHandler *commands.ApplySyncBatchHandler - translator *i18n.Translator + getSyncChangesHandler *queries.GetSyncChangesHandler + applySyncBatchHandler *commands.ApplySyncBatchHandler + translator *i18n.Translator } func NewSyncHandlers(