fix query

This commit is contained in:
Andre Medeiros 2021-07-26 13:06:50 -04:00
parent 3d679fe878
commit a5b69521c8

View file

@ -46,7 +46,7 @@ func (a *api) testDeviceHandler(w http.ResponseWriter, r *http.Request, ps httpr
SELECT username
FROM accounts
INNER JOIN devices_accounts ON devices.account_id = accounts.id
WHERE devices_accounts.device = $1`
WHERE devices_accounts.device_id = $1`
rows, err := a.db.Query(ctx, stmt, d.ID)
if err != nil {
a.logger.WithFields(logrus.Fields{