返回提交历史
Modified
src/controllers/api/startDojoRecipeController.ts
+2
-1
XFEstudio/XFESpaceNinjaServer
fix: handle dojo room build request from old versions (#2854)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2854 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
f5146be1
代码差异
1 个文件
+2
-1
@@ -13,6 +13,7 @@ import { Types } from "mongoose";
13
13
import { ExportDojoRecipes } from "warframe-public-export-plus";
14
14
import { getAccountForRequest } from "../../services/loginService.ts";
15
15
import { getInventory } from "../../services/inventoryService.ts";
16
import { fromOid } from "../../helpers/inventoryHelpers.ts";
16
17
17
18
interface IStartDojoRecipeRequest {
18
19
PlacedComponent: IDojoComponentClient;
@@ -50,7 +51,7 @@ export const startDojoRecipeController: RequestHandler = async (req, res) => {
50
51
_id: componentId,
51
52
pf: request.PlacedComponent.pf,
52
53
ppf: request.PlacedComponent.ppf,
53
pi: new Types.ObjectId(request.PlacedComponent.pi!.$oid),
54
pi: new Types.ObjectId(fromOid(request.PlacedComponent.pi!)),
54
55
op: request.PlacedComponent.op,
55
56
pp: request.PlacedComponent.pp,
56
57
DecoCapacity: room?.decoCapacity