Skip to content

Commit

Permalink
Merge pull request #192 from Synthetixio/add-product-to-totals-id
Browse files Browse the repository at this point in the history
Add product to totals id
  • Loading branch information
dbeal-eth authored Jun 16, 2022
2 parents a77d998 + 7333d18 commit 0fd0712
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/exchanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ function populateAggregatedTotalEntity(
synth: string | null,
): Total {
const synthName = synth && synth.length ? (synth as string) : 'null';
let id = timestamp.toString() + '-' + bucketMagnitude.toString() + '-' + synthName + '-' + period.toString();
let id =
timestamp.toString() + '-' + bucketMagnitude.toString() + '-' + synthName + '-' + period.toString() + '-' + product;

let entity = Total.load(id);

Expand Down

0 comments on commit 0fd0712

Please sign in to comment.