Remove string-only references to location_* generated columns

This commit is contained in:
Eli Ribble 2026-05-07 17:01:54 +00:00
parent 7a361a330d
commit 12213fb31b
No known key found for this signature in database
6 changed files with 67 additions and 37 deletions

View file

@ -10,9 +10,9 @@ import (
"github.com/go-jet/jet/v2/postgres"
)
func FeaturePoolsFromFeatures(ctx context.Context, txn db.Ex, site_ids []int64) ([]model.FeaturePool, error) {
sql_ids := make([]postgres.Expression, len(site_ids))
for i, site_id := range site_ids {
func FeaturePoolsFromFeatures(ctx context.Context, txn db.Ex, feature_ids []int64) ([]model.FeaturePool, error) {
sql_ids := make([]postgres.Expression, len(feature_ids))
for i, site_id := range feature_ids {
sql_ids[i] = postgres.Int(site_id)
}
statement := table.FeaturePool.SELECT(