Update the way the QueryManager exports are structured to be more esm-y rather than Java-y
This commit is contained in:
parent
bb095a9b4e
commit
df0c69c731
4 changed files with 187 additions and 177 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue