Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: New targets trigger release #23

Closed
wants to merge 9 commits into from

Conversation

adityachoudhari26
Copy link
Contributor

No description provided.

@@ -15,7 +15,9 @@ import {
target,
} from "@ctrlplane/db/schema";

type FilterFunc = (
type FilterFunc = (insertJobConfigs: JobConfigInsert[]) => JobConfigInsert[];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type FilterFunc = (insertJobConfigs: JobConfigInsert[]) => JobConfigInsert[];
type FilterFunc = (insertJobConfigs: JobConfigInsert[]) => JobConfigInsert[] | Promise<JobConfigInsert[]>;

@@ -134,7 +142,8 @@ class JobConfigBuilder {
releaseId: v.release.id,
}));

for (const func of this._filters) wt = await func(this.tx, wt);
for (const func of this._filters) wt = func(wt);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then you cans implify all this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants