From 9d65dc8e50580a0c929b620c702e0522b9fe3097 Mon Sep 17 00:00:00 2001 From: chaojun Date: Mon, 4 Nov 2024 13:58:28 +0800 Subject: [PATCH] Rename, #5008 --- packages/next-common/sima/utils/getProposalIndexer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next-common/sima/utils/getProposalIndexer.js b/packages/next-common/sima/utils/getProposalIndexer.js index 2f0bbf383d..d354729220 100644 --- a/packages/next-common/sima/utils/getProposalIndexer.js +++ b/packages/next-common/sima/utils/getProposalIndexer.js @@ -1,6 +1,6 @@ import { isNil } from "lodash-es"; -export function getReferendaProposalIndexer(post) { +export function getOpenGovReferendaIndexer(post) { return { pallet: "referenda", object: "referendumInfoFor", @@ -85,7 +85,7 @@ export default function getProposalIndexer(post) { const refToPost = post.refToPost; const type = refToPost?.postType; if (type === "referendaReferendum") { - return getReferendaProposalIndexer(refToPost); + return getOpenGovReferendaIndexer(refToPost); } else if (type === "fellowshipReferendum") { return getFellowshipReferendaIndexer(refToPost); } else if (type === "treasuryProposal") {