Update the way the QueryManager exports are structured to be more esm-y rather than Java-y

This commit is contained in:
Oliver 2025-11-19 21:18:42 -07:00
parent bb095a9b4e
commit df0c69c731
4 changed files with 187 additions and 177 deletions

View file

@ -1,6 +1,6 @@
import { __ID__, filePath } from "../consts.mjs";
import { get as getQuery, requery } from "../utils/QueryManager.mjs";
import { Logger } from "../utils/Logger.mjs";
import { QueryManager } from "../utils/QueryManager.mjs";
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
@ -62,7 +62,7 @@ export class QueryStatus extends HandlebarsApplicationMixin(ApplicationV2) {
};
async _prepareUsers(ctx) {
const query = QueryManager.get(this.requestID);
const query = getQuery(this.requestID);
if (!query) { return };
const users = [];
@ -85,7 +85,7 @@ export class QueryStatus extends HandlebarsApplicationMixin(ApplicationV2) {
static async promptUser($e, element) {
const userID = element.closest(`[data-user-id]`)?.dataset.userId;
if (!userID) { return };
QueryManager.requery(this.requestID, [ userID ]);
requery(this.requestID, [ userID ]);
};
/** @this {QueryStatus} */