Return text log data on insert

So we can show log messages and stuff.
This commit is contained in:
Eli Ribble 2026-05-21 18:51:39 +00:00
parent 3cfd3182e9
commit 74ef9a8b3a
No known key found for this signature in database

View file

@ -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) {