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,4 +1,4 @@
import { QueryManager } from "../utils/QueryManager.mjs";
import { addResponse, has as hasQuery } from "../utils/QueryManager.mjs";
export function submitRequest(payload, user) {
const {
@ -17,6 +17,6 @@ export function submitRequest(payload, user) {
return;
};
if (!QueryManager.has(id)) { return };
QueryManager.addResponse(id, user.id, answers);
if (!hasQuery(id)) { return };
addResponse(id, user.id, answers);
};