From ae86ef519c5dc557914c29bd1786b1c87d8dcb95 Mon Sep 17 00:00:00 2001
From: adamdottv <2363879+adamdottv@users.noreply.github.com>
Date: Tue, 13 May 2025 10:27:09 -0500
Subject: chore: refactoring

---
 internal/db/sql/logs.sql | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'internal/db/sql/logs.sql')

diff --git a/internal/db/sql/logs.sql b/internal/db/sql/logs.sql
index 1a0655f7e..58414f88a 100644
--- a/internal/db/sql/logs.sql
+++ b/internal/db/sql/logs.sql
@@ -1,4 +1,4 @@
--- name: CreateLog :exec
+-- name: CreateLog :one
 INSERT INTO logs (
     id,
     session_id,
@@ -15,7 +15,7 @@ INSERT INTO logs (
     ?,
     ?,
     ?
-);
+) RETURNING *;
 
 -- name: ListLogsBySession :many
 SELECT * FROM logs
@@ -25,4 +25,4 @@ ORDER BY timestamp ASC;
 -- name: ListAllLogs :many
 SELECT * FROM logs
 ORDER BY timestamp DESC
-LIMIT ?;
\ No newline at end of file
+LIMIT ?;
-- 
cgit v1.2.3

