mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 21:27:42 +00:00
fix query
This commit is contained in:
parent
3d679fe878
commit
a5b69521c8
1 changed files with 1 additions and 1 deletions
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue