Skip to content

Commit

Permalink
fix: Temporally use only Satsuma for Sold Items (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinszuchet authored Sep 24, 2024
1 parent b0d37ee commit 37147c0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ export async function initComponents(): Promise<AppComponents> {
l2CollectionsSubGraphUrl
)

const onlySatsumaL2CollectionsSubGraphUrl = await config.getString('ONLY_SATSUMA_COLLECTIONS_L2_SUBGRAPH_URL')
const onlySatsumaL2CollectionsSubGraph = await createSubgraphComponent(
{ config, logs, metrics, fetch },
onlySatsumaL2CollectionsSubGraphUrl || l2CollectionsSubGraphUrl
)

const rentalsSubGraphUrl = await config.requireString('RENTALS_SUBGRAPH_URL')
const rentalsSubGraph = await createSubgraphComponent({ config, logs, metrics, fetch }, rentalsSubGraphUrl)

Expand All @@ -83,7 +89,10 @@ export async function initComponents(): Promise<AppComponents> {
// Create the producer registry and add all the producers
const producerRegistry = await createProducerRegistry({ logs })
producerRegistry.addProducer(
await createProducer({ logs, database, eventPublisher }, await itemSoldProducer({ config, l2CollectionsSubGraph }))
await createProducer(
{ logs, database, eventPublisher },
await itemSoldProducer({ config, l2CollectionsSubGraph: onlySatsumaL2CollectionsSubGraph }) // Temp fix to only listen to satsuma until the Subquid has the fix too
)
)
producerRegistry.addProducer(
await createProducer(
Expand Down

0 comments on commit 37147c0

Please sign in to comment.