Skip to content

Commit

Permalink
pgsql: searchNotificationLayerIntroducingVulnerability order by layer ID
Browse files Browse the repository at this point in the history
This fixes a bug where the API was returning Notification pages ordered
by LDFV.ID instead of by Layer ID.
  • Loading branch information
jzelinskie committed Jan 19, 2017
1 parent 1d6ef94 commit ea73aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/pgsql/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const (
AND vafv.featureversion_id = fv.id
AND ldfv.featureversion_id = fv.id
AND ldfv.modification = 'add'
ORDER BY ldfv.ID
ORDER BY ldfv.layer_id
)
SELECT l.id, l.name
FROM LDFV, Layer l
Expand Down

0 comments on commit ea73aa1

Please sign in to comment.