From c851c2ade303bd126305edb605ea39ca60580daa Mon Sep 17 00:00:00 2001 From: Carlos Date: Thu, 14 Sep 2023 10:32:54 -0500 Subject: [PATCH] fix eligible donations migration --- ...35872128-AddEligibleNetworksToPreviousQfRounds.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 {