Skip to content

Commit

Permalink
Merge pull request #601 from desci-labs/fix-order-debug
Browse files Browse the repository at this point in the history
Migration debug adjustment
  • Loading branch information
kadamidev authored Oct 29, 2024
2 parents b6e07f0 + cb32202 commit b194ac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desci-server/src/controllers/admin/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ const debugMigration = async (uuid?: string, stream?: DebugStreamResponse): Prom
const ownerMatches = streamController?.toLowerCase() === legacyOwner?.toLowerCase();

// All Versions Migrated check
const streamManifestCids = streamResearchObject.versions.map((v) => hexToCid(v.cid));
const legacyManifestCids = legacyHistory.versions.map((v) => hexToCid(v.cid));
const streamManifestCids = streamResearchObject.versions.map((v) => hexToCid(v.cid)).reverse();
const legacyManifestCids = legacyHistory.versions.map((v) => hexToCid(v.cid)).reverse();

const zipped = Array.from(
Array(Math.max(streamManifestCids.length, legacyManifestCids.length)),
Expand Down

0 comments on commit b194ac3

Please sign in to comment.