Skip to content

Commit

Permalink
Implement suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbsky committed Dec 10, 2024
1 parent 950e622 commit d25a5ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/bsky/src/api/app/bsky/purchase/getFeatures.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Server } from '../../../../lexicon'
import AppContext from '../../../../context'
import { Features } from '@atproto/api/dist/client/types/app/bsky/purchase/getFeatures'
import { Features } from '../../../../lexicon/types/app/bsky/purchase/getFeatures'

export default function (server: Server, ctx: AppContext) {
server.app.bsky.purchase.getFeatures({
Expand Down Expand Up @@ -36,7 +36,7 @@ const getFeaturesForViewerEntitlements = async (
dids: [viewerDid],
})

if (purchaseEntitlements?.length === 0) {
if (purchaseEntitlements.length === 0) {
return defaultFeatures
}

Expand Down
3 changes: 1 addition & 2 deletions packages/bsky/tests/views/posts.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { AppBskyFeedPost, AtpAgent } from '@atproto/api'
import { TestNetwork, SeedClient, basicSeed } from '@atproto/dev-env'
import { forSnapshot, stripViewerFromPost } from '../_util'
import { RecordEmbed, VideoEmbed } from '../../src/views/types'
import { RecordWithMedia } from '../../dist/views/types'
import { RecordEmbed, RecordWithMedia, VideoEmbed } from '../../src/views/types'
import { ids } from '../../src/lexicon/lexicons'

describe('pds posts views', () => {
Expand Down

0 comments on commit d25a5ca

Please sign in to comment.