Skip to content

Commit e4b289d

Browse files
authored
chore: remove unused collections (#292)
* enh: do not write project partitioned votes * enh: do not write application partitioned votes
1 parent 2d94140 commit e4b289d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/indexer/handleEvent.ts

-10
Original file line numberDiff line numberDiff line change
@@ -641,11 +641,6 @@ async function handleEvent(
641641
project.uniqueContributors +
642642
(isNewapplicationContributor ? 1 : 0),
643643
})),
644-
db
645-
.collection<Vote>(
646-
`rounds/${event.args.roundAddress}/applications/${applicationId}/votes`
647-
)
648-
.insert(vote),
649644
]);
650645

651646
const contributorPartitionedPath = vote.voter
@@ -686,11 +681,6 @@ async function handleEvent(
686681
db
687682
.collection<Vote>(`rounds/${event.args.roundAddress}/votes`)
688683
.insert(vote),
689-
db
690-
.collection<Vote>(
691-
`rounds/${event.args.roundAddress}/projects/${event.args.projectId}/votes`
692-
)
693-
.insert(vote),
694684
]);
695685

696686
break;

0 commit comments

Comments
 (0)