Skip to content

Commit 6e72b48

Browse files
committed
chore: add catch to fetch bsky profiile call
1 parent 4ff7237 commit 6e72b48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/api/atproto/author-profiles.get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default defineCachedEventHandler(
6060
try {
6161
const response = await $fetch<ProfilesResponse>(`${BLUESKY_API}app.bsky.actor.getProfiles`, {
6262
query: { actors: handles },
63-
})
63+
}).catch(() => ({ profiles: [] }))
6464

6565
const avatarMap = new Map<string, string>()
6666
for (const profile of response.profiles) {

0 commit comments

Comments
 (0)