From eb961b3e11373b8f2e8111708c4b48f029484e59 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 12 Jan 2024 17:18:10 +0000 Subject: [PATCH] Fix `saveEquipmentBuild()` not correctly setting root id to first items _id --- project/src/controllers/BuildController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/controllers/BuildController.ts b/project/src/controllers/BuildController.ts index 25e9e24c..8cff3e22 100644 --- a/project/src/controllers/BuildController.ts +++ b/project/src/controllers/BuildController.ts @@ -128,7 +128,7 @@ export class BuildController Id: request.Id, Name: request.Name, BuildType: EquipmentBuildType.CUSTOM, - Root: request.Root, + Root: request.Items[0]._id, Items: request.Items, };