Skip to content

Commit

Permalink
tidy, build
Browse files Browse the repository at this point in the history
  • Loading branch information
devinivy committed Jan 4, 2024
1 parent f556e80 commit 9c1dead
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-push-pds-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches:
- main
- multi-pds-auth
- multi-pds-auth-ozone
env:
REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }}
USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }}
Expand Down
5 changes: 2 additions & 3 deletions packages/pds/src/api/com/atproto/admin/emitModerationEvent.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { Server } from '../../../../lexicon'
import AppContext from '../../../../context'
import { authPassthru } from '../../../proxy'
import { debugCatch } from '../../../../util/debug'

export default function (server: Server, ctx: AppContext) {
server.com.atproto.admin.emitModerationEvent({
auth: ctx.authVerifier.role,
handler: debugCatch(async ({ req, input }) => {
handler: async ({ req, input }) => {
const { data: result } =
await ctx.moderationAgent.com.atproto.admin.emitModerationEvent(
input.body,
Expand All @@ -16,6 +15,6 @@ export default function (server: Server, ctx: AppContext) {
encoding: 'application/json',
body: result,
}
}),
},
})
}

0 comments on commit 9c1dead

Please sign in to comment.