File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { Client } from '@atproto/lex'
1+ import { Client , type AtIdentifierString } from '@atproto/lex'
22import * as app from '#shared/types/lexicons/app'
33import 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 )
Original file line number Diff line number Diff line change 1- import { Client } from '@atproto/lex'
1+ import { Client , type AtIdentifierString } from '@atproto/lex'
22import * as app from '#shared/types/lexicons/app'
33import { BLUESKY_API , ERROR_PDS_FETCH_FAILED } from '#shared/utils/constants'
44import 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 ,
You can’t perform that action at this time.
0 commit comments