refactor(core): Move more typeorm operators to repositories (no-changelog) (#8143)
Follow-up to #8139
This commit is contained in:
@@ -172,4 +172,11 @@ export class WorkflowRepository extends Repository<WorkflowEntity> {
|
||||
|
||||
return { workflows, count };
|
||||
}
|
||||
|
||||
async findStartingWith(workflowName: string): Promise<Array<{ name: string }>> {
|
||||
return this.find({
|
||||
select: ['name'],
|
||||
where: { name: Like(`${workflowName}%`) },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user