From 5c076e605185a09b1e570f9aa3c5ddb784ace0f3 Mon Sep 17 00:00:00 2001
From: T <t@tjp.lol>
Date: Wed, 13 Aug 2025 21:37:59 -0600
Subject: edit contractor via modal

---
 internal/database/queries.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'internal/database/queries.sql')

diff --git a/internal/database/queries.sql b/internal/database/queries.sql
index 1ab9f44..4ed5578 100644
--- a/internal/database/queries.sql
+++ b/internal/database/queries.sql
@@ -203,7 +203,7 @@ returning *;
 -- name: UpdateContractor :one
 update contractor 
 set name = @name, label = @label, email = @email
-where id = (select id from contractor order by id limit 1)
+where id = (select id from contractor limit 1)
 returning *;
 
 -- name: UpdateClient :one
-- 
cgit v1.2.3

