Skip to content

Commit c6a4765

Browse files
committed
Fix email sending (but still not yet idempotent)
1 parent 262b135 commit c6a4765

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

backend/btrixcloud/crawls.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,12 +1227,17 @@ async def notify_org_admins_of_auto_paused_crawl(
12271227
):
12281228
"""Send email to all org admins about automatically paused crawl"""
12291229
users = await self.orgs.get_users_for_org(org, UserRole.OWNER)
1230-
workflow = await self.crawl_configs.get_crawl_config(cid)
1230+
workflow = await self.crawl_configs.get_crawl_config_out(cid, org)
12311231

12321232
await asyncio.gather(
12331233
*[
12341234
self.user_manager.email.send_crawl_auto_paused(
1235-
user.email, paused_reason, workflow.lastCrawlPausedExpiry, cid, org
1235+
user.name,
1236+
user.email,
1237+
paused_reason,
1238+
workflow.lastCrawlPausedExpiry,
1239+
cid,
1240+
org,
12361241
)
12371242
for user in users
12381243
]

0 commit comments

Comments
 (0)