Skip to content

Commit

Permalink
feat(payments): use pagination system from go libs (#1253)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas authored Feb 16, 2024
1 parent 0606d2b commit 580fe15
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion internal/storage/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func (s *Storage) GetPolicy(ctx context.Context, id uuid.UUID) (*models.Policy,

func (s *Storage) buildPolicyListQuery(selectQuery *bun.SelectQuery, q GetPoliciesQuery, where string, args []any) *bun.SelectQuery {
selectQuery = selectQuery.
Model((*models.Policy)(nil)).
Order("created_at DESC")

if where != "" {
Expand Down
1 change: 0 additions & 1 deletion internal/storage/reconciliations.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ func (s *Storage) GetReconciliation(ctx context.Context, id uuid.UUID) (*models.

func (s *Storage) buildReconciliationListQuery(selectQuery *bun.SelectQuery, q GetReconciliationsQuery, where string, args []any) *bun.SelectQuery {
selectQuery = selectQuery.
Model((*models.Reconciliation)(nil)).
Order("created_at DESC")

if where != "" {
Expand Down

0 comments on commit 580fe15

Please sign in to comment.