diff --git a/src/worker.ts b/src/worker.ts index e97266a..6aefea2 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -723,8 +723,8 @@ const plugin = definePlugin({ }; let reminded = 0; + const companies = await ctx.companies.list(); for (const staleCase of data.cases) { - const companies = await ctx.companies.list(); for (const company of companies) { const issues = await ctx.issues.list({ companyId: company.id }); let linkedIssueId: string | null = null;