Hi @Tim_N_A ,
This code looks like it has some issues , for example chnageEvent.collection is not a reference to the collection itself and i don’t believe has an updateOne function.
Additionally there are const declared values which you are changing. So there are fundamental js issues here, does this code run without errors??
Please share the trigger web url so I can have a look.
Look at my blog series here it contains some similar trigger manipulation maybe it will provide you with the way to write this one. It has an async and await trigger syntax as it is much cleaner and advised.
Thanks
Pavel