Skip to content

Commit

Permalink
Insert query change in seed file due to the difference in entity stuc…
Browse files Browse the repository at this point in the history
…ture when issuer-api version upgraded
  • Loading branch information
Aish1990 committed May 15, 2024
1 parent 03dbbc3 commit 9d4f1b6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions apps/drec-api/migrations/9999999999999-Seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,17 @@ export class Seed9999999999999 implements MigrationInterface {

if (provider && contractsLookup) {
await queryRunner.query(
`INSERT INTO public.issuer_blockchain_properties ("netId", "registry", "issuer", "rpcNode", "rpcNodeFallback", "platformOperatorPrivateKey") VALUES (${
`INSERT INTO public.issuer_blockchain_properties ("netId", "registry", "issuer", "rpcNode", "rpcNodeFallback") VALUES (${
provider.network.chainId
}, '${contractsLookup.registry}', '${
contractsLookup.issuer
}', '${primaryRpc}', '${fallbackRpc ?? ''}', '${
issuerAccount.privateKey
}')`,
}', '${primaryRpc}', '${fallbackRpc ?? ''}'
)`,
);

await queryRunner.query(
`INSERT INTO public.issuer_signer ("blockchainNetId", "platformOperatorPrivateKey", "isEncrypted") VALUES (${provider.network.chainId}, '${issuerAccount.privateKey}', false
)`,
);
}

Expand Down

0 comments on commit 9d4f1b6

Please sign in to comment.