Skip to content

Commit

Permalink
update mock dataplane
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Feb 2, 2024
1 parent 2457391 commit add0cc8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/bsky/src/data-plane/server/routes/relationships.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ export default (db: Database): Partial<ServiceImpl<typeof Service>> => ({
db.db
.selectFrom('list_item')
.innerJoin('list_mute', 'list_mute.listUri', 'list_item.listUri')
.innerJoin('list', 'list.uri', 'list_item.listUri')
.where('list.purpose', '=', 'app.bsky.graph.defs#modlist')
.where('list_mute.mutedByDid', '=', actorDid)
.whereRef('list_item.subjectDid', '=', ref('actor.did'))
.select('list_item.listUri')
Expand All @@ -47,17 +45,13 @@ export default (db: Database): Partial<ServiceImpl<typeof Service>> => ({
db.db
.selectFrom('list_item')
.innerJoin('list_block', 'list_block.subjectUri', 'list_item.listUri')
.innerJoin('list', 'list.uri', 'list_item.listUri')
.where('list.purpose', '=', 'app.bsky.graph.defs#modlist')
.where('list_block.creator', '=', actorDid)
.whereRef('list_item.subjectDid', '=', ref('actor.did'))
.select('list_item.listUri')
.as('blockingByList'),
db.db
.selectFrom('list_item')
.innerJoin('list_block', 'list_block.subjectUri', 'list_item.listUri')
.innerJoin('list', 'list.uri', 'list_item.listUri')
.where('list.purpose', '=', 'app.bsky.graph.defs#modlist')
.where('list_item.subjectDid', '=', actorDid)
.whereRef('list_block.creator', '=', ref('actor.did'))
.select('list_item.listUri')
Expand Down

0 comments on commit add0cc8

Please sign in to comment.