Skip to content

Commit f572758

Browse files
committed
Renamed the audit logs object properties.
1 parent fbf43bc commit f572758

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
- fixed loading plugin files (only `.js` files will load)
66
- removed loading of `.DS_STORE` files in plugins
77
- added watcher for `extensions/*.html` files
8+
- __breaking change__: the audit logs object has been changed:
9+
- `username` renamed to `createdby`
10+
- `schema` renamed to `action`
811

912
========================
1013
0.0.13

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,7 @@ F.audit = function(name, $, message, type) {
20472047

20482048
if ($.user) {
20492049
data.userid = $.user.id;
2050-
data.username = $.user.name || $.user.nick || $.user.alias;
2050+
data.createdby = $.user.name || $.user.nick || $.user.alias;
20512051
}
20522052

20532053
if ($.controller) {
@@ -2063,7 +2063,7 @@ F.audit = function(name, $, message, type) {
20632063
data.type = type || 'info';
20642064

20652065
if ($.id)
2066-
data.schema = $.id;
2066+
data.action = $.id;
20672067

20682068
if ($.model)
20692069
data.data = JSON.stringify({ params: $.params, query: $.query, model: $.model }, auditjsonserialization);

0 commit comments

Comments
 (0)