Skip to content

Commit

Permalink
Moved CARBON_REVENUES_TO_COVER enum to entity file
Browse files Browse the repository at this point in the history
  • Loading branch information
atrincas committed Nov 27, 2024
1 parent 2d649f5 commit 2407187
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions shared/entities/carbon-revenues-to-cover.enum.ts

This file was deleted.

7 changes: 6 additions & 1 deletion shared/entities/custom-project.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ import { Country } from "@shared/entities/country.entity";
* The shape defined here is probably wrong, it's only based on the output of the prototype in the notebooks, and it will only serve as a learning resource.
*/

export enum CARBON_REVENUES_TO_COVER {
OPEX = "Opex",
CAPEX_AND_OPEX = "Capex and Opex",
}

@Entity({ name: "custom_projects" })
export class CustomProject {
@PrimaryGeneratedColumn("uuid")
Expand All @@ -39,7 +44,7 @@ export class CustomProject {
output_snapshot: any;

static fromCustomProjectSnapshotDTO(
dto: CustomProjectSnapshotDto
dto: CustomProjectSnapshotDto,
): CustomProject {
const customProject = new CustomProject();
customProject.countryCode = {
Expand Down

0 comments on commit 2407187

Please sign in to comment.