[golang] implement sending the starting probe to a shipyard that sells other probes
This commit is contained in:
parent
bd2fb50c81
commit
3656b87b86
6 changed files with 98 additions and 61 deletions
|
@ -45,8 +45,8 @@ func (db *DB) LoadWaypoint(symbol string) (*model.Waypoint, error) {
|
|||
return &waypoint, nil
|
||||
}
|
||||
|
||||
func (db *DB) LoadWaypointsInSystem(system *model.System) ([]model.Waypoint, error) {
|
||||
rows, err := db.Query(`SELECT data FROM waypoints WHERE data->>'systemSymbol' = ?;`, system.Symbol)
|
||||
func (db *DB) LoadWaypointsInSystem(systemSymbol string) ([]model.Waypoint, error) {
|
||||
rows, err := db.Query(`SELECT data FROM waypoints WHERE data->>'systemSymbol' = ?;`, systemSymbol)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to query waypoints: %w", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue