Skip to content

Commit

Permalink
fix query (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhiran authored Jan 14, 2025
1 parent 2aa7089 commit 9ac6ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/device_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (d *DB) QueryDeviceRecord(latitude, longitude string) (*DeviceRecord, error
return t, nil
}
oldIDs := []string{}
if err := d.oldDB.Raw(fmt.Sprintf(sql, longitude, latitude)).Scan(&ids).Error; err != nil {
if err := d.oldDB.Raw(fmt.Sprintf(sql, longitude, latitude)).Scan(&oldIDs).Error; err != nil {
return nil, errors.Wrap(err, "failed to query device record geo data from old db")
}
slog.Info("old ids", "oldIDs", oldIDs)
Expand Down

0 comments on commit 9ac6ab1

Please sign in to comment.