fixed marker position beeing updated on Validation
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user