Use transactions to set the communication status changes
Not doing it yet, but soon we'll do log entries for them.
This commit is contained in:
parent
040ab106b4
commit
a95e44cf42
8 changed files with 67 additions and 20 deletions
|
|
@ -20,5 +20,5 @@ func UserInsert(ctx context.Context, txn bob.Tx, m *model.User) (*model.User, er
|
|||
statement := table.User.INSERT(table.User.MutableColumns).
|
||||
MODEL(m).
|
||||
RETURNING(table.User.AllColumns)
|
||||
return db.ExecuteOneTx[model.User](ctx, txn, statement)
|
||||
return db.ExecuteOneTxBob[model.User](ctx, txn, statement)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue