From 4b932231f77e04b1215d8ddd3b50cc31ab9325a6 Mon Sep 17 00:00:00 2001 From: Ford Date: Tue, 27 Sep 2022 08:33:31 -0700 Subject: [PATCH] indexer-common: Use consistent deployment names --- packages/indexer-common/src/indexer-management/allocations.ts | 2 +- .../src/indexer-management/resolvers/allocations.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/indexer-common/src/indexer-management/allocations.ts b/packages/indexer-common/src/indexer-management/allocations.ts index cec0c6088..da4379dbb 100644 --- a/packages/indexer-common/src/indexer-management/allocations.ts +++ b/packages/indexer-common/src/indexer-management/allocations.ts @@ -326,7 +326,7 @@ export class AllocationManager { await this.subgraphManager.ensure( logger, this.models, - `${deployment.ipfsHash.slice(0, 23)}/${deployment.ipfsHash.slice(23)}`, + `indexer-agent/${deployment.ipfsHash.slice(-10)}`, deployment, indexNode, ) diff --git a/packages/indexer-common/src/indexer-management/resolvers/allocations.ts b/packages/indexer-common/src/indexer-management/resolvers/allocations.ts index 590631b36..1fc65bf7f 100644 --- a/packages/indexer-common/src/indexer-management/resolvers/allocations.ts +++ b/packages/indexer-common/src/indexer-management/resolvers/allocations.ts @@ -482,9 +482,7 @@ export default { await subgraphManager.ensure( logger, models, - `${subgraphDeployment.ipfsHash.slice(0, 23)}/${subgraphDeployment.ipfsHash.slice( - 23, - )}`, + `indexer-agent/${subgraphDeployment.ipfsHash.slice(-10)}`, subgraphDeployment, indexNode, )