Cleaning up code

This commit is contained in:
Rishi Ghan
2026-04-14 10:26:07 -04:00
parent c604bd8e4d
commit 4d50f22df4
10 changed files with 7469 additions and 22745 deletions

View File

@@ -1,5 +1,4 @@
import { IncomingMessage } from "http";
import { Service, ServiceBroker, Context } from "moleculer";
import { Service, ServiceBroker } from "moleculer";
import ApiGateway from "moleculer-web";
export default class ApiService extends Service {
@@ -72,7 +71,7 @@ export default class ApiService extends Service {
"POST /": async (req: any, res: any) => {
try {
const { query, variables, operationName } = req.body;
const result = await req.$ctx.broker.call("gateway.query", {
query,
variables,
@@ -151,7 +150,7 @@ export default class ApiService extends Service {
"POST /": async (req: any, res: any) => {
try {
const { query, variables, operationName } = req.body;
const result = await req.$ctx.broker.call("gateway.queryLocal", {
query,
variables,