Skip to content

Commit

Permalink
🐛 Forward sendEmail event to moderationAgent instead of appview
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit committed Feb 2, 2024
1 parent 4b1c8af commit 0d4c33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pds/src/api/com/atproto/admin/sendEmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 0d4c33b

Please sign in to comment.