Skip to content

Commit

Permalink
fix: fix contract sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadhb committed Jan 16, 2025
1 parent 3e4e5c5 commit 41ebc8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sql/contracts/get.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SELECT id, COUNT(*) OVER () as total_count
FROM contracts c
WHERE c.provider_id = $1 OR c.client_id=$1
ORDER BY c.created_at DESC
LIMIT $2 OFFSET $3

0 comments on commit 41ebc8d

Please sign in to comment.