SpaceNinjaServer/src/controllers/api/setSupportedSyndicateController.ts

10 lines
377 B
TypeScript
Raw Normal View History

import { RequestHandler } from "express";
import { getInventory } from "@/src/services/inventoryService";
export const setSupportedSyndicateController: RequestHandler = async (req, res) => {
const inventory = await getInventory(req.query.accountId as string);
inventory.SupportedSyndicate = req.query.syndicate as string;
await inventory.save();
res.end();
};