Skip to content

Commit

Permalink
subgraph: fix past streams saving
Browse files Browse the repository at this point in the history
the previous code did not save anything into pastStreams
  • Loading branch information
eladmallel committed Nov 22, 2024
1 parent d789cf3 commit 09d5d0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nouns-subgraph/src/stream-escrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 09d5d0d

Please sign in to comment.