diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-02-11 14:11:14 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-02-11 18:57:25 +0100 |
commit | 2b246457e8f13b42a31b8ee3f5632dab09c21a85 (patch) | |
tree | e0cc3a496e0dc529fa38ec38681c6410ecba994e /src | |
parent | 432c0c8723687eed45c94ff46eb411260774f3c2 (diff) |
Fix: Make sure artifacts are listed asc by id
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/db.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commands/db.rs b/src/commands/db.rs index eb37fa8..8a37ec3 100644 --- a/src/commands/db.rs +++ b/src/commands/db.rs @@ -157,6 +157,7 @@ fn artifacts(conn_cfg: DbConnectionConfig, matches: &ArgMatches) -> Result<()> { dsl::artifacts .inner_join(schema::jobs::table) .left_join(schema::releases::table) + .order_by(schema::artifacts::id.asc()) .load::<(models::Artifact, models::Job, Option<models::Release>)>(&conn) .map_err(Error::from) })? |