Skip to content

Commit

Permalink
upgraded 1kv loader
Browse files Browse the repository at this point in the history
  • Loading branch information
ironoa committed May 27, 2023
1 parent a583c2b commit eed74da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/polkadot-k8s-payouts/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <devops@web3.foundation>",
Expand Down
3 changes: 1 addition & 2 deletions src/gitConfigLoader/gitHub1kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -12,7 +11,7 @@ export class GitHub1kv implements GitConfigLoader {

async downloadAndLoad(): Promise<Array<Target>> {
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<TargetFromGit1kv> = data.candidates

Expand Down

0 comments on commit eed74da

Please sign in to comment.