I've been trying to update a simple map with different entries.
I created first the const
const dMap: { [key: string]: any } = {};
and adding my Values:
dMap[urlToCurrentEvent] = updateMap
My Update Map show like :
const updateMap = {
[new table.DB_artikel().anzahlVerfugbar()]: bestand,
[new table.DB_artikel().visible()]: visible,
}
when i show it in console look like :
'karte/aktuell/34/artikel_inventar/34': { anzahlVerfugbar: 0, visible: false }, 'karte/aktuell/34': { anzahlVerfugbar: 0, visible: false }
Thats fine and it seems to work, when i have different Paths, but now coms an error in updating Firebase :
Error: update failed: values argument contains a path /karte/aktuell/34 that is ancestor of another path /karte/aktuell/34/artikel_inventar/34
I am understood , but was is the resolution?