Skip to content

Commit

Permalink
revert load dids
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Nov 9, 2023
1 parent f842835 commit d9680bc
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/pds/src/migrate-script/load-dids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,10 @@ const run = async () => {
console.log(`loading next ${amount} dids`)
const { db, ctx } = await setupEnv()

const lastDidInDb = await db
.selectFrom('status')
.select('did')
.orderBy('did', 'desc')
.limit(1)
.executeTakeFirst()

const lastDid = lastDidInDb?.did ?? ''

const didsRes = await ctx.db.db
.selectFrom('user_account')
.select('did')
.where('pdsId', 'is', null)
.where('did', '>', lastDid)
.orderBy('did', 'asc')
.limit(amount)
.execute()
Expand Down

0 comments on commit d9680bc

Please sign in to comment.