Skip to content

Commit

Permalink
try fix ips
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVerstraete committed Aug 11, 2022
1 parent b49842d commit 8283287
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "graphql_tfgrid",
"private": "true",
"version": "2.4.3",
"version": "2.4.4",
"description": "GraphQL server and Substrate indexer. Generated with ♥ by Hydra-CLI",
"author": "",
"license": "ISC",
Expand Down
2 changes: 1 addition & 1 deletion processor-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
name: tfchain-processor
description: A chart for the tfchain graphql processor and query node
version: 1.0.4
appVersion: "2.4.3"
appVersion: "2.4.4"
3 changes: 3 additions & 0 deletions src/mappings/farms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ export async function farmUpdated(ctx: EventHandlerContext) {
savedFarm.pricingPolicyID = farmUpdatedEventParsed.pricingPolicyId

await farmUpdatedEventParsed.publicIps.forEach(async ip => {
if (ip.ip.toString().indexOf('\x00') >= 0) {
return
}
const savedIP = await ctx.store.get(PublicIp, { where: { ip: ip.ip.toString() } })
// ip is already there in storage, don't save it again
if (savedIP) {
Expand Down

0 comments on commit 8283287

Please sign in to comment.