fix: handle refresh request for a single dojo component
All checks were successful
Build / build (18) (push) Successful in 42s
Build / build (22) (push) Successful in 1m0s
Build / build (20) (push) Successful in 57s
Build / build (18) (pull_request) Successful in 42s
Build / build (20) (pull_request) Successful in 1m0s
Build / build (22) (pull_request) Successful in 59s
All checks were successful
Build / build (18) (push) Successful in 42s
Build / build (22) (push) Successful in 1m0s
Build / build (20) (push) Successful in 57s
Build / build (18) (pull_request) Successful in 42s
Build / build (20) (pull_request) Successful in 1m0s
Build / build (22) (pull_request) Successful in 59s
This commit is contained in:
parent
0ffa9c6bc4
commit
a21eb06ea8
@ -24,5 +24,10 @@ export const getGuildDojoController: RequestHandler = async (req, res) => {
|
||||
await guild.save();
|
||||
}
|
||||
|
||||
res.json(await getDojoClient(guild, 0));
|
||||
const payload: IGetGuildDojoRequest = req.body ? (JSON.parse(String(req.body)) as IGetGuildDojoRequest) : {};
|
||||
res.json(await getDojoClient(guild, 0, payload.ComponentId));
|
||||
};
|
||||
|
||||
interface IGetGuildDojoRequest {
|
||||
ComponentId?: string;
|
||||
}
|
||||
|
@ -173,6 +173,7 @@ apiRouter.post("/focus.php", focusController);
|
||||
apiRouter.post("/fusionTreasures.php", fusionTreasuresController);
|
||||
apiRouter.post("/genericUpdate.php", genericUpdateController);
|
||||
apiRouter.post("/getAlliance.php", getAllianceController);
|
||||
apiRouter.post("/getGuildDojo.php", getGuildDojoController);
|
||||
apiRouter.post("/getVoidProjectionRewards.php", getVoidProjectionRewardsController);
|
||||
apiRouter.post("/gildWeapon.php", gildWeaponController);
|
||||
apiRouter.post("/giveKeyChainTriggeredItems.php", giveKeyChainTriggeredItemsController);
|
||||
|
Loading…
x
Reference in New Issue
Block a user