From c3b037b6fb6f9ff552649c19bed347000846d8d6 Mon Sep 17 00:00:00 2001 From: Rekard0 <5880388+Rekard0@users.noreply.github.com> Date: Sun, 24 Sep 2023 00:46:37 +0200 Subject: [PATCH] add extra comments --- packages/subgraph/schema.graphql | 3 ++- packages/subgraph/src/plugin/pluginRepo.ts | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/subgraph/schema.graphql b/packages/subgraph/schema.graphql index 9e512f9fc..9c4fbf82d 100644 --- a/packages/subgraph/schema.graphql +++ b/packages/subgraph/schema.graphql @@ -210,7 +210,8 @@ type Permission @entity { actor: Bytes! condition: Bytes - "we can use the following attributes to create one-to-many between Dao or PluginRepo to Permission" + # The following attributes is used to create + # one-to-many between Dao or PluginRepo to Permission dao: Dao pluginRepo: PluginRepo } diff --git a/packages/subgraph/src/plugin/pluginRepo.ts b/packages/subgraph/src/plugin/pluginRepo.ts index cd5311536..ebe9ba0da 100644 --- a/packages/subgraph/src/plugin/pluginRepo.ts +++ b/packages/subgraph/src/plugin/pluginRepo.ts @@ -1,4 +1,4 @@ -import {log, store} from '@graphprotocol/graph-ts'; +import {store} from '@graphprotocol/graph-ts'; import { ReleaseMetadataUpdated, VersionCreated, @@ -95,8 +95,6 @@ export function handleGranted(event: Granted): void { permissionEntity.pluginRepo = pluginRepo; - permissionEntity.tx = event.transaction.hash.toHexString(); - permissionEntity.save(); } }