paleobot / pbot-api

MIT License
2 stars 0 forks source link

Faulty logic for location handling in Resolvers.js update path prevents Collection update #44

Open NoisyFlowers opened 1 month ago

NoisyFlowers commented 1 month ago

There are two unrelated problem areas.

One is in mutateNode. The logic for special location handling in the update path is wrong. It should match the logic in the create path, which is right.

The other is in handleUpdate when we are creating the apoc for copying old param values to the ENTERED_BY link. There, the JSON.stringify on the location object does not create something we can compare to. Need to check latitude and longitude separately.

NoisyFlowers commented 1 month ago

Both are fixed in 0136d849f40cf1daae89911c7dc213c6118212a2

currently only on ddm-dev branch