Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Nov 9, 2023
1 parent 9bf2fa9 commit f94accf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/pds/src/migrate-script/migrate-all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@ export const runScript = async () => {
.where('did', '=', status.did)
.execute()
completed++
await repairFailedBlobs(ctx, db, pdsInfo, status.did, adminHeaders)
await repairFailedPrefs(ctx, db, pdsInfo, status.did)
await repairFailedPrefs(ctx, db, pdsInfo, status.did).catch(() =>
console.log('failed to repair prefs: ', status.did),
)
repairFailedBlobs(ctx, db, pdsInfo, status.did, adminHeaders).catch(
() => console.log('failed to repair blobs: ', status.did),
)
} catch (err) {
// @ts-ignore
const errmsg: string = err?.message ?? null
Expand Down

0 comments on commit f94accf

Please sign in to comment.