refactor audit code

This commit is contained in:
stremovsky
2019-12-14 22:14:59 +02:00
parent 8633fd4f69
commit fd511813ee
3 changed files with 11 additions and 1 deletions

View File

@@ -53,6 +53,12 @@ func (event auditEvent) submit(db dbcon) {
if len(event.Who) > 0 {
bdoc["who"] = event.Who
}
if len(event.Mode) > 0 {
bdoc["mode"] = event.Mode
}
if len(event.Identity) > 0 {
bdoc["identity"] = event.Identity
}
if len(event.Record) > 0 {
bdoc["record"] = event.Record
}