Skip to content

Commit

Permalink
add extra comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekard0 committed Sep 23, 2023
1 parent e336069 commit c3b037b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/subgraph/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 1 addition & 3 deletions packages/subgraph/src/plugin/pluginRepo.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {log, store} from '@graphprotocol/graph-ts';
import {store} from '@graphprotocol/graph-ts';
import {
ReleaseMetadataUpdated,
VersionCreated,
Expand Down Expand Up @@ -95,8 +95,6 @@ export function handleGranted(event: Granted): void {

permissionEntity.pluginRepo = pluginRepo;

permissionEntity.tx = event.transaction.hash.toHexString();

permissionEntity.save();
}
}
Expand Down

0 comments on commit c3b037b

Please sign in to comment.