mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-31 05:12:46 +00:00
parent
3f9b829bc5
commit
0ab5bccd11
9 changed files with 62 additions and 82 deletions
|
@ -110,9 +110,10 @@ func (s *inviteEventsStatements) InsertInviteEvent(
|
|||
}
|
||||
|
||||
func (s *inviteEventsStatements) DeleteInviteEvent(
|
||||
ctx context.Context, inviteEventID string,
|
||||
ctx context.Context, txn *sql.Tx, inviteEventID string,
|
||||
) (sp types.StreamPosition, err error) {
|
||||
err = s.deleteInviteEventStmt.QueryRowContext(ctx, inviteEventID).Scan(&sp)
|
||||
stmt := sqlutil.TxStmt(txn, s.deleteInviteEventStmt)
|
||||
err = stmt.QueryRowContext(ctx, inviteEventID).Scan(&sp)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue