mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
17 lines
318 B
Go
17 lines
318 B
Go
package services
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/formancehq/payments/internal/models"
|
|
)
|
|
|
|
func (s *Service) TaskGet(ctx context.Context, id models.TaskID) (*models.Task, error) {
|
|
task, err := s.storage.TasksGet(ctx, id)
|
|
if err != nil {
|
|
return nil, newStorageError(err, "cannot get task")
|
|
}
|
|
|
|
return task, nil
|
|
}
|