fieles neues
This commit is contained in:
@@ -223,6 +223,14 @@ async function createAuditLogsCollection() {
|
||||
else throw err;
|
||||
}
|
||||
|
||||
try {
|
||||
await databases.createIndex(DATABASE_ID, COLLECTION_ID, 'idx_userId', 'key', ['userId'], ['ASC']);
|
||||
console.log(' Index erstellt: idx_userId');
|
||||
} catch (err) {
|
||||
if (err.code === 409) console.log(' Index existiert bereits: idx_userId');
|
||||
else throw err;
|
||||
}
|
||||
|
||||
console.log(' Attribute fuer audit_logs erstellt (assetId, action, details, userId, userName)');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user