HeroPhil / DHBW-KinoCinema

https://dhbw-kk-kino.web.app/
GNU General Public License v3.0
0 stars 0 forks source link

Add ticketRef to users ticket array (tickets.ts) #35

Closed christian-bettermann closed 3 years ago

christian-bettermann commented 3 years ago

Folgende Lösung habe ich im Netz gefunden: userRef.update({ tickets: admin.firestore.FieldValue.arrayUnion(ticket) });

Diese funktioniert jedoch nicht (Typescript wirft hier einen Fehler auf Grund der FieldValue)

christian-bettermann commented 3 years ago

Decided to cancel the double reference which would be the result of a ticketRefsArray under the user.