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:
parent
8a2d946b63
commit
606d6e14ea
11 changed files with 179 additions and 165 deletions
|
|
@ -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` },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue