Skip to content

Commit 3fa13aa

Browse files
committed
refactor(dataPatchEmissions): apply suggested changes in review
1 parent a530cf9 commit 3fa13aa

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/cmd/dataPatchEmissions.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,9 @@ async function run(): Promise<void> {
3939
await client.query('COMMIT');
4040
}
4141

42-
// await setEmissionsUpdateSuccessful(client);
4342
} catch (e) {
4443
await client.query('ROLLBACK');
4544

46-
// await setEmissionsUpdateFailed(client);
47-
4845
throw e;
4946
}
5047

@@ -76,7 +73,7 @@ async function updateProductEmissions(client: PoolClient, productHash: string):
7673
const generateEmissionsData = () => {
7774
return JSON.stringify([{
7875
emissionHash: 'SampleEmissionHash',
79-
unit: 'kgeqCO2',
76+
unit: 'kgCO2e',
8077
emissions: Math.random() * 100,
8178
effectiveDateStart: '2020-01-01',
8279
effectiveDateEnd: '2024-12-31',

0 commit comments

Comments
 (0)