Skip to content

Commit 249cefa

Browse files
committed
fix: gateway by name query
1 parent d709c78 commit 249cefa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ravel/state/db/gateways.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (q Queries) DeleteFleetGateways(ctx context.Context, fleetId string) error
1919
}
2020

2121
func (q Queries) GetGatewayByName(ctx context.Context, namespace, name string) (gateway api.Gateway, err error) {
22-
err = q.db.QueryRow(ctx, baseSelectGateway+" WHERE namespace = $1 AND name = $3", namespace, name).Scan(
22+
err = q.db.QueryRow(ctx, baseSelectGateway+" WHERE namespace = $1 AND name = $2", namespace, name).Scan(
2323
&gateway.Id,
2424
&gateway.Name,
2525
&gateway.Namespace,

0 commit comments

Comments
 (0)