Skip to content

Commit

Permalink
fix(EthereumRegistryWRiter): indices (#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
lautarodragan authored Dec 3, 2019
1 parent 81937ff commit dc45939
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/EthereumRegistryWriter/Business.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ export const Business = ({
await claimAnchorReceiptsCollection.createIndex({ 'anchorReceipt.ipfsDirectoryHash': 1 })
await claimAnchorReceiptsCollection.createIndex(
{ claimFileConfirmed: 1, batchDirectoryConfirmed: 1, anchorReceiptFile: 1 },
{ unique: true },
)
await claimAnchorReceiptsCollection.createIndex({ claimAndAnchorReceiptDirectory: 1 }, { unique: true })
await claimAnchorReceiptsCollection.createIndex(
{ claimAndAnchorReceiptDirectory: 1 },
{ unique: true, sparse: true },
)
}

const insertClaimIdFilePair = async (claimId: string, claimFile: string): Promise<void> => {
Expand Down

0 comments on commit dc45939

Please sign in to comment.