Closed thatlonelybugbear closed 1 year ago
itemArray is already a map of the items IDs. Proposed change await actor.deleteEmbeddedDocuments("Item", [itemArray]); to
await actor.deleteEmbeddedDocuments("Item", [itemArray]);
await actor.deleteEmbeddedDocuments("Item", itemArray);
As mentioned in Foundry discord: https://discord.com/channels/170995199584108546/722566083499786352/987329041143062568
itemArray is already a map of the items IDs. Proposed change
await actor.deleteEmbeddedDocuments("Item", [itemArray]);
toawait actor.deleteEmbeddedDocuments("Item", itemArray);