add vehicle tracking, ESS samples

This commit is contained in:
41666 2024-10-28 23:00:40 -07:00
parent 4a528fe85a
commit 0fa1de3b4e
10 changed files with 824 additions and 7 deletions

View file

@ -7,6 +7,7 @@ import (
"time"
"github.com/genudine/saerro-go/types"
"github.com/genudine/saerro-go/util"
"github.com/avast/retry-go"
)
@ -94,7 +95,7 @@ func (ps *VehicleStore) Insert(ctx context.Context, vehicle *types.Vehicle) erro
zone_id = EXCLUDED.zone_id,
vehicle_name = EXCLUDED.vehicle_name
`,
vehicle.LastUpdated,
util.TimeToString(vehicle.LastUpdated),
vehicle.CharacterID,
vehicle.WorldID,
vehicle.FactionID,