fix: handle dojo room build request from old versions #2854
@ -13,6 +13,7 @@ import { Types } from "mongoose";
|
|||||||
import { ExportDojoRecipes } from "warframe-public-export-plus";
|
import { ExportDojoRecipes } from "warframe-public-export-plus";
|
||||||
import { getAccountForRequest } from "../../services/loginService.ts";
|
import { getAccountForRequest } from "../../services/loginService.ts";
|
||||||
import { getInventory } from "../../services/inventoryService.ts";
|
import { getInventory } from "../../services/inventoryService.ts";
|
||||||
|
import { fromOid } from "../../helpers/inventoryHelpers.ts";
|
||||||
|
|
||||||
interface IStartDojoRecipeRequest {
|
interface IStartDojoRecipeRequest {
|
||||||
PlacedComponent: IDojoComponentClient;
|
PlacedComponent: IDojoComponentClient;
|
||||||
@ -50,7 +51,7 @@ export const startDojoRecipeController: RequestHandler = async (req, res) => {
|
|||||||
_id: componentId,
|
_id: componentId,
|
||||||
pf: request.PlacedComponent.pf,
|
pf: request.PlacedComponent.pf,
|
||||||
ppf: request.PlacedComponent.ppf,
|
ppf: request.PlacedComponent.ppf,
|
||||||
pi: new Types.ObjectId(request.PlacedComponent.pi!.$oid),
|
pi: new Types.ObjectId(fromOid(request.PlacedComponent.pi!)),
|
||||||
op: request.PlacedComponent.op,
|
op: request.PlacedComponent.op,
|
||||||
pp: request.PlacedComponent.pp,
|
pp: request.PlacedComponent.pp,
|
||||||
DecoCapacity: room?.decoCapacity
|
DecoCapacity: room?.decoCapacity
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user