Skip to content

Commit 2fe2631

Browse files
committed
fix: some benign type casting - look away
1 parent 2932dbc commit 2fe2631

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

server/api/atproto/pds-graphs.get.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Client } from '@atproto/lex'
1+
import { Client, type AtIdentifierString } from '@atproto/lex'
22
import * as app from '#shared/types/lexicons/app'
33
import type { AtprotoProfile } from '#shared/types/atproto'
44

@@ -64,7 +64,7 @@ export default defineCachedEventHandler(
6464
const data = await blueskyClient.call(
6565
app.bsky.actor.getProfiles,
6666
{
67-
actors: batch,
67+
actors: batch as AtIdentifierString[],
6868
},
6969
{ validateResponse: false },
7070
)

server/api/atproto/pds-users.get.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Client } from '@atproto/lex'
1+
import { Client, type AtIdentifierString } from '@atproto/lex'
22
import * as app from '#shared/types/lexicons/app'
33
import { BLUESKY_API, ERROR_PDS_FETCH_FAILED } from '#shared/utils/constants'
44
import type { AtprotoProfile } from '#shared/types/atproto'
@@ -56,7 +56,11 @@ export default defineCachedEventHandler(
5656

5757
batchPromises.push(
5858
blueskyClient
59-
.call(app.bsky.actor.getProfiles, { actors: batch }, { validateResponse: false })
59+
.call(
60+
app.bsky.actor.getProfiles,
61+
{ actors: batch as AtIdentifierString[] },
62+
{ validateResponse: false },
63+
)
6064
.then(data =>
6165
data.profiles.map(profile => ({
6266
did: profile.did,

0 commit comments

Comments
 (0)