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(); } }