#12 audit and history

This commit is contained in:
2026-02-05 17:02:27 +02:00
parent 6e95ac7999
commit 758fc6be42
7 changed files with 34 additions and 10 deletions
+1
View File
@@ -34,6 +34,7 @@ class AccessManager {
async addToHistory(id, collection, action){
let o;
if (typeof id == 'string') o = await this.app.db.get(collection, {'_id': this.app.db.ObjectId(id)});
else if (typeof id == 'number') o = await this.app.db.get(collection, {id});
else o = id;
o._oid = this.app.db.ObjectId(o._id);
o._from = collection;