Rank 2: Process
Hi,
I have a function that listen to any create event in another collection then grab the data and add it to another collection
The first collection: POS_ORDERS
The second collection: ORDERS_PAYMENT_RECORDS
the function event listen to any create in the POS_ORDERS collection then executes, grabbing the data in the document and creating a payment record in the second Collection (ORDERS_PAYMENT_RECORDS) with read permission to the POS userId and the creator of the document userId only.
My question if 2 POS's creates document in the same time same second, does that cause a problem with the function, like creating only one record or missing something??