Not all order tags making it onto order with updateOrderOfTerminalTicket mutation

Order tags are getting dropped somewhere

Here is the query:

{"query":"mutation updateOrder{updateOrderOfTerminalTicket(terminalId:"kQUvYlECLki1TAK-sgvKCQ", orderUid:"eNVgXH3XfU6G8hef_HayHg", orderTags:
[
{tagName:"Default", tag:"Thick Crust", price:1.0, quantity:1, note:""},
{tagName:"Default", tag:"Pizza Sauce", price:0.0, quantity:1, note:""},
{tagName:"Default", tag:"Single Portion", price:0.0, quantity:1, note:""},
{tagName:"Default", tag:"Bacon", price:0.0, quantity:1, note:""},
{tagName:"Default", tag:"Cheese Only", price:0.0, quantity:1, note:""},
{tagName:"Default", tag:"Thick Crust", price:1.0, quantity:1, note:""},
{tagName:"Default", tag:"Pizza Sauce", price:0.0, quantity:1, note:""},
{tagName:"Default", tag:"Single Portion", price:0.0, quantity:1, note:""},
{tagName:"Default", tag:"Bacon", price:0.0, quantity:1, note:""},
{tagName:"Default", tag:"Green Pepper", price:0.0, quantity:1, note:""},
{tagName:"Default", tag:"Sausage", price:0.0, quantity:1, note:""},
{tagName:"Default", tag:"BBQ Tandoori Chicken", price:0.0, quantity:1, note:""},
{tagName:"Default", tag:"Cheese Only", price:0.0, quantity:1, note:""},
{tagName:"Default", tag:"Ham", price:0.0, quantity:1, note:""}
]){uid}}"}

however, only this shows on the ticket:

2020-12-20_21;52_1608522727_Samba.Presentation

The query executes without errors:

{
  "data": {
    "updateOrderOfTerminalTicket": {
      "uid": "kQUvYlECLki1TAK-sgvKCQ"
    }
  },
  "errors": null
}

where do I need to look to solve this?

If you update order tags one by one it adds every tag?

let me check

1234567

I have notice that you have some duplicated order tags in the mutation and only uniques order tags were applied, it is doing untag behavior

Good eye! I wasn’t even looking at the tags.

I gave up on adding the tags individually as refactoring is is a pain.

Now to find why its duplicating or just check the tags against a hashtable…

Thanks Francisco!