Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MRamanenkau committed Jun 10, 2024
1 parent 0f402bf commit 1a16642
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/crawlers/ddc2.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const actualizeDdcNodes = async (api, dbClient) => {
mode = EXCLUDED.mode
;`;

const persistClusterQuery = `
const persistNodeToClusterQuery = `
INSERT INTO node_to_cluster (
cluster_id,
node_id
Expand Down Expand Up @@ -170,7 +170,7 @@ const actualizeDdcNodes = async (api, dbClient) => {
await dbParamQuery(dbClient, persistNodeQuery, nodeData, loggerOptions);

// eslint-disable-next-line no-await-in-loop
await dbParamQuery(dbClient, persistClusterQuery, nodeClusterData, loggerOptions);
await dbParamQuery(dbClient, persistNodeToClusterQuery, nodeClusterData, loggerOptions);

// eslint-disable-next-line no-await-in-loop
await dbParamQuery(dbClient, persistNodeToProviderQuery, nodeToProviderData, loggerOptions);
Expand Down
3 changes: 2 additions & 1 deletion frontend/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export default {
data() {
return {
network,
clusterId: null,
// Hardcoded for now
clusterId: '0x7f82864e4f097e63d04cc279e4d8d2eb45a42ffa',
}
},
computed: {
Expand Down
4 changes: 3 additions & 1 deletion frontend/pages/cluster/_id.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{{ $t('pages.cluster.providers') }}
</h5>
<h5>
{{ providers.length }}
{{ providersNumber }}
</h5>
</div>
</div>
Expand Down Expand Up @@ -400,6 +400,7 @@ export default {
},
],
providers: [],
providersNumber: 0,
clusterId: this.$route.params.id,
rewards: [],
providers_rewards: [],
Expand Down Expand Up @@ -464,6 +465,7 @@ export default {
},
result({ data }) {
this.providers = data.node_provider_stats
this.providersNumber = this.providers.length
this.getLastEraStats()
this.loading = false
},
Expand Down

0 comments on commit 1a16642

Please sign in to comment.