mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
event logging
This commit is contained in:
parent
b6c676149a
commit
93ed361705
48 changed files with 861 additions and 853 deletions
|
@ -85,6 +85,8 @@ func AddPin(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
p.RecordEvent(entity.EventTypePinAdd)
|
||||
|
||||
log.IfErr(tx.Commit())
|
||||
|
||||
newPin, err := p.GetPin(pin.RefID)
|
||||
|
@ -178,6 +180,8 @@ func DeleteUserPin(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
p.RecordEvent(entity.EventTypePinDelete)
|
||||
|
||||
log.IfErr(tx.Commit())
|
||||
|
||||
util.WriteSuccessEmptyJSON(w)
|
||||
|
@ -238,6 +242,8 @@ func UpdatePinSequence(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
}
|
||||
|
||||
p.RecordEvent(entity.EventTypePinResequence)
|
||||
|
||||
log.IfErr(tx.Commit())
|
||||
|
||||
newPins, err := p.GetUserPins(userID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue