api.spaceplanner.app

Spaceplanner API
git clone git://jacobedwards.org/api.spaceplanner.app
Log | Files | Refs

commit 8cbf0373bdcba760a3e7acbd67ef92b9c758f70e
parent b455efa4199999c2c554cb1239df1b253ae8a780
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Mon, 26 Aug 2024 14:20:44 -0700

Fix invalid id remapping

The new pointmap id was put in the new point id table.

Diffstat:
Minternal/backend/floorplan_data.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/backend/floorplan_data.go b/internal/backend/floorplan_data.go @@ -296,7 +296,7 @@ func (e *Env) patchPointMap(tx *sql.Tx, user string, floorplan string, patch *Pa if (patch.Op == "new") { pointmap, err = e.addPointMap(tx, user, floorplan, pointmap) if pointmap.id != id { - pointidmap[id] = pointmap.id + idmap[id] = pointmap.id pointmap.OldId = &id } } else if (patch.Op == "replace") {