From eed74da2174307252d4fc5e8aab3bac77f6d23b5 Mon Sep 17 00:00:00 2001 From: Alessio Onori Date: Sat, 27 May 2023 20:35:52 +0200 Subject: [PATCH] upgraded 1kv loader --- charts/polkadot-k8s-payouts/Chart.yaml | 4 ++-- package.json | 2 +- src/gitConfigLoader/gitHub1kv.ts | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/charts/polkadot-k8s-payouts/Chart.yaml b/charts/polkadot-k8s-payouts/Chart.yaml index 041c88a..69dc47e 100644 --- a/charts/polkadot-k8s-payouts/Chart.yaml +++ b/charts/polkadot-k8s-payouts/Chart.yaml @@ -1,5 +1,5 @@ description: Polkadot K8s Payouts name: polkadot-k8s-payouts -version: v1.2.4 -appVersion: v1.2.4 +version: v1.2.5 +appVersion: v1.2.5 apiVersion: v2 diff --git a/package.json b/package.json index 07466b2..900e8b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "polkadot-payouts", - "version": "1.2.4", + "version": "1.2.5", "description": "Automated transfers among accounts", "repository": "git@github.com:w3f/accountant.git", "author": "W3F Infrastructure Team ", diff --git a/src/gitConfigLoader/gitHub1kv.ts b/src/gitConfigLoader/gitHub1kv.ts index 71c9775..26f767b 100644 --- a/src/gitConfigLoader/gitHub1kv.ts +++ b/src/gitConfigLoader/gitHub1kv.ts @@ -2,7 +2,6 @@ import { GitConfigLoader } from "./gitConfigLoaderInterface"; import fetch from 'node-fetch'; import { Target } from "../types"; import { TargetFromGit1kv } from "./types"; -import { parse } from 'yaml' export class GitHub1kv implements GitConfigLoader { @@ -12,7 +11,7 @@ export class GitHub1kv implements GitConfigLoader { async downloadAndLoad(): Promise> { const response = await fetch(this.url); - let data = await response.json(); + const data = await response.json(); // based on the shape of https://github.com/w3f/1k-validators-be/blob/master/helmfile.d/config/kusama/otv-backend-prod.yaml.gotmpl const candidates: Array = data.candidates