feat: restock darvo (#221)

This commit is contained in:
Sainan 2024-05-13 14:40:54 +02:00 committed by GitHub
parent ea994e24d6
commit 7fa9d08a4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,8 @@
import { RequestHandler } from "express";
export const getDailyDealStockLevelsController: RequestHandler = (req, res) => {
res.json({
StoreItem: req.query.productName,
AmountSold: 0
});
};

View File

@ -47,6 +47,7 @@ import { createGuildController } from "@/src/controllers/api/createGuildControll
import { sellController } from "@/src/controllers/api/sellController";
import { upgradesController } from "@/src/controllers/api/upgradesController";
import { setSupportedSyndicateController } from "@/src/controllers/api/setSupportedSyndicateController";
import { getDailyDealStockLevelsController } from "@/src/controllers/api/getDailyDealStockLevelsController";
const apiRouter = express.Router();
@ -75,6 +76,7 @@ apiRouter.get("/setBootLocation.php", setBootLocationController);
apiRouter.get("/setActiveShip.php", setActiveShipController);
apiRouter.get("/getGuild.php", getGuildController);
apiRouter.get("/setSupportedSyndicate.php", setSupportedSyndicateController);
apiRouter.get("/getDailyDealStockLevels.php", getDailyDealStockLevelsController);
// post
// eslint-disable-next-line @typescript-eslint/no-misused-promises

View File

@ -942,7 +942,7 @@
"OriginalPrice": 40,
"SalePrice": 20,
"AmountTotal": 50,
"AmountSold": 50
"AmountSold": 0
}
],
"LibraryInfo": { "LastCompletedTargetType": "/Lotus/Types/Game/Library/Targets/Research7Target" },