add missing awaits for eventlog.add

This commit is contained in:
Girish Ramakrishnan
2022-02-24 20:04:46 -08:00
parent 9a6694286a
commit a3e097d541
10 changed files with 28 additions and 28 deletions
+1 -1
View File
@@ -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 }));