Skip to content

Commit

Permalink
Merge pull request #1769 from w3f/fix-crashes
Browse files Browse the repository at this point in the history
More crash fixing & version bump
  • Loading branch information
Philipp D authored Apr 21, 2022
2 parents a3fc119 + c0c9f6b commit 7cf4844
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/otv-backend/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: 1K Validators Backend
name: otv-backend
version: v2.6.5
version: v2.6.6
apiVersion: v2
2 changes: 1 addition & 1 deletion charts/otv-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resources:

image:
repo: web3f/otv-backend
tag: v2.6.5
tag: v2.6.6

certificate:
enabled: true
Expand Down
4 changes: 2 additions & 2 deletions helmfile.d/10-otv-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ releases:
namespace: kusama
{{ if eq .Environment.Name "production" }}
chart: w3f/otv-backend
version: v2.6.5
version: v2.6.6
{{ else }}
chart: ../charts/otv-backend
{{ end }}
Expand All @@ -27,7 +27,7 @@ releases:
namespace: polkadot
{{ if eq .Environment.Name "production" }}
chart: w3f/otv-backend
version: v2.6.5
version: v2.6.6
{{ else }}
chart: ../charts/otv-backend
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "1k-validators-be",
"version": "2.6.5",
"version": "2.6.6",
"description": "Services for running the Thousand Validator Program.",
"main": "index.js",
"scripts": {
Expand Down
8 changes: 7 additions & 1 deletion src/cron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,13 @@ export const startExecutionJob = async (
await Promise.all(
targets.map(async (n) => {
const name = await db.getCandidate(n);
return `- ${name.name} (${addressUrl(n, config)})`;
if (name) {
return `- ${name.name} (${addressUrl(n, config)})`;
} else {
return `- ${JSON.stringify(
name
)} (Invalid name!) (${addressUrl(n, config)})`;
}
})
)
).join("<br>");
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { startClearAccumulatedOfflineTimeJob, startMonitorJob } from "./cron";

const isCI = process.env.CI;

const version = "v2.6.5";
const version = "v2.6.6";

const catchAndQuit = async (fn: any) => {
try {
Expand Down

0 comments on commit 7cf4844

Please sign in to comment.