Make all of the DB methods async, and update the dependencies in order to make them work with the async DBs

This commit is contained in:
Oliver-Akins 2025-05-11 22:47:23 -06:00
parent 8a2d946b63
commit 606d6e14ea
11 changed files with 179 additions and 165 deletions

View file

@ -35,7 +35,7 @@ export class StatSidebar extends HandlebarsApplicationMixin(AbstractSidebarTab)
const ctx = await super._prepareContext(options);
const db = CONFIG.stats.db;
ctx.tableCount = db.getTables().length;
ctx.tableCount = (await db.getTables()).length;
const controls = {
openStats: { label: `View Stats`, action: `openStats` },