mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +02:00
Fix order of DB transaction commits
Some DB commit commands were out of sequence and so have been fixed to be consist across the board. Specially, audit log entries have their own DB TX and so should be executed outside of any other commit cycle.
This commit is contained in:
parent
880f39f1cb
commit
0997655e0a
16 changed files with 100 additions and 75 deletions
|
@ -156,6 +156,7 @@ type PinStorer interface {
|
|||
|
||||
// AuditStorer defines required methods for audit trails
|
||||
type AuditStorer interface {
|
||||
// Record logs audit entry using own DB Transaction
|
||||
Record(ctx RequestContext, t audit.EventType)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue