From 74ef9a8b3ae1969f6151ed7ae7660ab9078f9016 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 21 May 2026 18:51:39 +0000 Subject: [PATCH] Return text log data on insert So we can show log messages and stuff. --- db/query/comms/text_log.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/query/comms/text_log.go b/db/query/comms/text_log.go index 95d3af03..b5ce87dc 100644 --- a/db/query/comms/text_log.go +++ b/db/query/comms/text_log.go @@ -12,7 +12,8 @@ import ( func TextLogInsert(ctx context.Context, txn db.Ex, m model.TextLog) (model.TextLog, error) { statement := table.TextLog.INSERT( table.TextLog.MutableColumns, - ).MODEL(m) + ).MODEL(m). + RETURNING(table.TextLog.AllColumns) return db.ExecuteOneTx[model.TextLog](ctx, txn, statement) } func TextLogFromID(ctx context.Context, txn db.Ex, id int64) (model.TextLog, error) {