Assets not showing on map #8

Closed
opened 2026-05-20 21:28:07 +00:00 by shawn · 0 comments
Owner

Problem

Map loadAssetPins() filtered by a.latitude != null but assets never had lat/lng populated — coordinates only lived in the checkins table.

Fix

  • Backend: create_checkin now auto-updates assets.latitude/longitude on every GPS check-in
  • Database: Backfilled existing 3 assets from their latest check-in history

Commits

## Problem Map `loadAssetPins()` filtered by `a.latitude != null` but assets never had lat/lng populated — coordinates only lived in the checkins table. ## Fix - Backend: `create_checkin` now auto-updates `assets.latitude`/`longitude` on every GPS check-in - Database: Backfilled existing 3 assets from their latest check-in history ## Commits - fc0a3ee
shawn closed this issue 2026-05-20 21:28:07 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shawn/canteen-asset-tracker#8