Return text log data on insert
So we can show log messages and stuff.
This commit is contained in:
parent
3cfd3182e9
commit
74ef9a8b3a
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue