fixed marker position beeing updated on Validation

This commit is contained in:
PxlLoewe
2025-07-22 11:50:15 -07:00
parent 64c895d229
commit 70736b847b
3 changed files with 42 additions and 5 deletions

View File

@@ -241,9 +241,6 @@ router.post("/:id/hpg-validation-result", async (req, res) => {
const newMission = await prisma.mission.update({
where: { id: Number(missionId) },
data: {
// save position of new mission
addressLat: result.state === "POSITION_AMANDED" ? result.lat : undefined,
addressLng: result.state === "POSITION_AMANDED" ? result.lng : undefined,
hpgLocationLat: result.lat,
hpgLocationLng: result.lng,
hpgValidationState: result.state,