fix create visited

This commit is contained in:
tito
2023-05-07 11:45:18 +02:00
parent 4bd18c6d62
commit 4037691c8f

View File

@@ -102,7 +102,9 @@ export class DetailComponent implements OnInit {
if (user?.id !== undefined) {
let waypointVisited: WaypointsVisitedEntity = {userId: user.id , waypointId: this.waypointInfo.id}
console.log("waypointVisited", waypointVisited)
this.waypointVisitedService.createWaypoint(waypointVisited)
this.waypointVisitedService.createWaypoint(waypointVisited).subscribe(waypointVisited => {
console.log("waypointVisited request return", waypointVisited)
})
}
})
} else {