initializeReconciliationProgress initializes or retrieves the progress of a reconciliation. If no progress exists, it creates a new progress entry. Parameters: - ctx: The context controlling the request. - reconciliationID: The ID of the reconciliation. Returns: - model.ReconciliationProgress: The c
(ctx context.Context, reconciliationID string)
| 388 | // - model.ReconciliationProgress: The current or newly initialized progress. |
| 389 | // - error: If the initialization or retrieval fails. |
| 390 | func (s *LedgerForge) initializeReconciliationProgress(ctx context.Context, reconciliationID string) (model.ReconciliationProgress, error) { |
| 391 | progress, err := s.loadReconciliationProgress(ctx, reconciliationID) |
| 392 | if err != nil { |
| 393 | logrus.Errorf("Error loading reconciliation progress: %v", err) |
| 394 | return model.ReconciliationProgress{}, nil |
| 395 | } |
| 396 | return progress, nil |
| 397 | } |
| 398 | |
| 399 | // createReconciler creates a reconciler function based on the specified strategy, group criteria, and matching rules. |
| 400 | // Parameters: |
no test coverage detected