瀏覽代碼

Fix storage node metadata handling bug

Leszek Wiesner 3 年之前
父節點
當前提交
686478ed6b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      query-node/mappings/storage/index.ts

+ 1 - 1
query-node/mappings/storage/index.ts

@@ -154,7 +154,7 @@ async function getDistributionBucketOperatorWithMetadata(store: DatabaseManager,
 async function getStorageBucketWithOperatorMetadata(store: DatabaseManager, id: string) {
   const bucket = await store.get(StorageBucket, {
     where: { id },
-    relations: ['metadata', 'metadata.nodeLocation', 'metadata.nodeLocation.coordinates'],
+    relations: ['operatorMetadata', 'operatorMetadata.nodeLocation', 'operatorMetadata.nodeLocation.coordinates'],
   })
   if (!bucket) {
     throw new Error(`StorageBucket not found by id: ${id}`)