From aa15789e11b365658ff1a2175b907bd88f956324 Mon Sep 17 00:00:00 2001 From: Foysal Ahamed Date: Mon, 5 Feb 2024 05:18:27 +0100 Subject: [PATCH] :bug: Forward sendEmail event to moderationAgent instead of appview (#2125) --- packages/pds/src/api/com/atproto/admin/sendEmail.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pds/src/api/com/atproto/admin/sendEmail.ts b/packages/pds/src/api/com/atproto/admin/sendEmail.ts index c632e87ce59..169eaf4e6e2 100644 --- a/packages/pds/src/api/com/atproto/admin/sendEmail.ts +++ b/packages/pds/src/api/com/atproto/admin/sendEmail.ts @@ -40,7 +40,7 @@ export default function (server: Server, ctx: AppContext) { { content }, { subject, to: account.email }, ) - await ctx.appViewAgent.api.com.atproto.admin.emitModerationEvent( + await ctx.moderationAgent.api.com.atproto.admin.emitModerationEvent( { event: { $type: 'com.atproto.admin.defs#modEventEmail',