From 09d5d0dc525dc8145352d6e3b69d23980034fa91 Mon Sep 17 00:00:00 2001 From: eladmallel Date: Fri, 22 Nov 2024 08:23:09 -0500 Subject: [PATCH] subgraph: fix past streams saving the previous code did not save anything into pastStreams --- packages/nouns-subgraph/src/stream-escrow.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nouns-subgraph/src/stream-escrow.ts b/packages/nouns-subgraph/src/stream-escrow.ts index 5c0d7b698..eeb3b88c7 100644 --- a/packages/nouns-subgraph/src/stream-escrow.ts +++ b/packages/nouns-subgraph/src/stream-escrow.ts @@ -54,7 +54,9 @@ export function handleStreamCreated(event: StreamCreated): void { const son = getOrCreateStreamsOfNoun(nounId); if (son.currentStream != null) { - son.pastStreams.push(son.currentStream!); + let pastStreams = son.pastStreams; + pastStreams.push(son.currentStream!); + son.pastStreams = pastStreams; } son.currentStream = s.id; son.save();