fix un-awaited cookie setting
authorJustin Wind <justin.wind+git@gmail.com>
Sat, 10 Jun 2023 18:48:35 +0000 (11:48 -0700)
committerJustin Wind <justin.wind+git@gmail.com>
Sat, 10 Jun 2023 18:48:35 +0000 (11:48 -0700)
lib/session-manager.js

index cb4c7126ec54cffc18b1856270cd1112f5c60182..43990cc376e4ee8b16a35092c2bf81620b3a1b9a 100644 (file)
@@ -227,7 +227,7 @@ class SessionManager {
     const _scope = _fileScope('getAdminLogout');
     this.logger.debug(_scope, 'called', { ctx });
 
-    this._sessionCookieSet(res, '', 0);
+    await this._sessionCookieSet(res, '', 0);
 
     const redirect = ctx.queryParams['r'] || './';