Merge pull request 'on the front page, order the builds by platform name' (#130) from order-platform into main

Reviewed-on: https://git.robur.io/robur/builder-web/pulls/130
This commit is contained in:
Reynir Björnsson 2022-07-28 08:48:43 +00:00
commit 637afde869

View file

@ -412,7 +412,7 @@ module Build = struct
let get_platforms_for_job =
id `job ->* Caqti_type.string @@
"SELECT DISTINCT platform FROM build WHERE job = ?"
"SELECT DISTINCT platform FROM build WHERE job = ? ORDER BY platform"
let add =
t ->. Caqti_type.unit @@