Skip to content

Commit

Permalink
export script & change filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Nov 2, 2023
1 parent 3e16cee commit b614a78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/pds/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export { Database } from './db'
export { DiskBlobStore, MemoryBlobStore } from './storage'
export { AppContext } from './context'
export { httpLogger } from './logger'
export { runScript } from './migrate-script'

export class PDS {
public ctx: AppContext
Expand Down
6 changes: 3 additions & 3 deletions packages/pds/src/migrate-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ export const runScript = async () => {
'base64pad',
)

const allDids = await readDidFile('all-dids.txt')
const succeeded = await readDidFile('succeeded.txt')
const allDids = await readDidFile('/data/all-dids.txt')
const succeeded = await readDidFile('/data/succeeded.txt')
const succeededMap = succeeded.reduce((acc, cur) => {
acc[cur] = true
return acc
}, {} as Record<string, boolean>)
const failed = await readDidFile('failed.txt')
const failed = await readDidFile('/data/failed.txt')
const failedMap = failed.reduce((acc, cur) => {
acc[cur] = true
return acc
Expand Down

0 comments on commit b614a78

Please sign in to comment.