diff --git a/migration/1694635872128-AddEligibleNetworksToPreviousQfRounds.ts b/migration/1694635872128-AddEligibleNetworksToPreviousQfRounds.ts index 680bdef1d..f65f5635b 100644 --- a/migration/1694635872128-AddEligibleNetworksToPreviousQfRounds.ts +++ b/migration/1694635872128-AddEligibleNetworksToPreviousQfRounds.ts @@ -13,14 +13,14 @@ export class AddEligibleNetworksToPreviousQfRounds1694635872128 ? [1, 3, 5, 100, 137, 10, 420, 56, 42220, 44787] // Include testnets for staging : [1, 137, 56, 42220, 100, 10]; // Exclude testnets for non-staging - // Convert the eligibleNetworks array to a comma-separated string - const eligibleNetworksString = eligibleNetworks.join(', '); - // Update the "qf_round" table with the new eligibleNetworks values - await queryRunner.query(` + await queryRunner.query( + ` UPDATE "qf_round" - SET eligibleNetworks = '{${eligibleNetworksString}}' - `); + SET eligibleNetworks = $1 + `, + [eligibleNetworks], + ); } public async down(queryRunner: QueryRunner): Promise {