Skip to content

Commit

Permalink
remove order clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Oct 15, 2024
1 parent 4f21a9f commit c25abc9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/job-dispatch/src/policies/release-sequencing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import _ from "lodash";

import { and, asc, desc, eq, inArray, notExists, sql } from "@ctrlplane/db";
import { and, eq, inArray, notExists, sql } from "@ctrlplane/db";
import * as schema from "@ctrlplane/db/schema";
import { activeStatus } from "@ctrlplane/validators/jobs";

Expand Down Expand Up @@ -47,11 +47,6 @@ export const isPassingNoActiveJobsPolicy: ReleaseIdPolicyChecker = async (
`),
),
),
)
.orderBy(
asc(schema.deployment.id),
desc(schema.release.createdAt),
desc(schema.release.version),
);

// edge case - if multiple releases are created at the same time, only take latest, then highest lexicographical version
Expand Down

0 comments on commit c25abc9

Please sign in to comment.