add missing awaits for eventlog.add
This commit is contained in:
+1
-1
@@ -142,7 +142,7 @@ async function activate(username, password, email, displayName, ip, auditSource)
|
||||
const token = { clientId: tokens.ID_WEBADMIN, identifier: ownerId, expires: Date.now() + constants.DEFAULT_TOKEN_EXPIRATION_MSECS };
|
||||
const result = await tokens.add(token);
|
||||
|
||||
eventlog.add(eventlog.ACTION_ACTIVATE, auditSource, {});
|
||||
await eventlog.add(eventlog.ACTION_ACTIVATE, auditSource, {});
|
||||
|
||||
setImmediate(() => safe(cloudron.onActivated({}), { debug }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user