Skip to content

Commit

Permalink
fix up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Feb 7, 2024
1 parent 478b23a commit a737327
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/pds/src/api/app/bsky/feed/getAuthorFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from '../../../../read-after-write'
import { pipethrough } from '../../../../pipethrough'

const METHOD_NSID = 'app.bsky.actor.getProfile'
const METHOD_NSID = 'app.bsky.feed.getAuthorFeed'

export default function (server: Server, ctx: AppContext) {
server.app.bsky.feed.getAuthorFeed({
Expand Down
5 changes: 2 additions & 3 deletions packages/pds/src/api/app/bsky/feed/getPostThread.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { AtUri } from '@atproto/syntax'
import { AppBskyFeedGetPostThread } from '@atproto/api'
import { Headers } from '@atproto/xrpc'
import { Headers, XRPCError } from '@atproto/xrpc'
import { Server } from '../../../../lexicon'
import AppContext from '../../../../context'
import { authPassthru } from '../../../proxy'
Expand Down Expand Up @@ -58,7 +57,7 @@ export default function (server: Server, ctx: AppContext) {
getPostThreadMunge,
)
} catch (err) {
if (err instanceof AppBskyFeedGetPostThread.NotFoundError) {
if (err instanceof XRPCError && err.error === 'NotFound') {
const headers = err.headers
const keypair = await ctx.actorStore.keypair(requester)
const local = await ctx.actorStore.read(requester, (store) => {
Expand Down

0 comments on commit a737327

Please sign in to comment.