pgsql: searchNotificationLayerIntroducingVulnerability order by layer ID

This fixes a bug where the API was returning Notification pages ordered
by LDFV.ID instead of by Layer ID.
pull/307/head
Jimmy Zelinskie 7 years ago
parent 1d6ef941a0
commit ea73aa153d

@ -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

Loading…
Cancel
Save