Skip to content
Snippets Groups Projects
Commit 7783f29d authored by Martin Claesson's avatar Martin Claesson
Browse files

#27 - FEATURE - Move items with drag and drop between inventories

fix lint issue
parent 81d196e8
Branches
Tags
1 merge request!26#28 - BUG - Unable to update or remove items
......@@ -52,7 +52,7 @@ export async function RemoveItem(partyUUID: string, values: ItemClientTransferTy
return reject("no such item")
}
party.updateOne({$pull: {"inventory.$.items": { '_id': values.item._id} }}).exec().then((res) => {
party.updateOne({$pull: {"inventory.$.items": { "_id": values.item._id} }}).exec().then((res) => {
resolve(res)
}).catch(reject)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment