Skip to content

Commit a530cf9

Browse files
committed
refactor(CO2): use emissions instead of CO2e
1 parent f0caf3f commit a530cf9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/cmd/dataPatchEmissions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const generateEmissionsData = () => {
7777
return JSON.stringify([{
7878
emissionHash: 'SampleEmissionHash',
7979
unit: 'kgeqCO2',
80-
CO2e: Math.random() * 100,
80+
emissions: Math.random() * 100,
8181
effectiveDateStart: '2020-01-01',
8282
effectiveDateEnd: '2024-12-31',
8383
startUsageAmount: 0,

src/db/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export type Price = {
3131
export type Emission = {
3232
emissionHash: string;
3333
unit: string;
34-
CO2e: string;
34+
emissions: string;
3535
effectiveDateStart: string;
3636
effectiveDateEnd?: string;
3737
startUsageAmount?: string;

src/typeDefs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const typeDefs = gql`
2121
type Emission {
2222
emissionHash: String!
2323
unit: String!
24-
CO2e: String!
24+
emissions: String!
2525
effectiveDateStart: String
2626
effectiveDateEnd: String
2727
startUsageAmount: String

0 commit comments

Comments
 (0)