Skip to content

Commit

Permalink
fix: Make correct abatementPotential type in custom-project.entity.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
alepefe committed Dec 5, 2024
1 parent 82352c6 commit d207be7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/test/utils/stubs/custom-project.stub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ECOSYSTEM } from '@shared/entities/ecosystem.enum';

const DEFAULT_CONSERVATION_CUSTOM_PROJECT: CustomProject = {
projectName: 'My custom project',
abatementPotential: null,
abatementPotential: undefined,
country: {
code: 'IND',
name: 'India',
Expand Down
2 changes: 1 addition & 1 deletion shared/entities/custom-project.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class CustomProject {
projectLength: number;

@Column({ name: "abatement_potential", type: "decimal", nullable: true })
abatementPotential: number;
abatementPotential?: number;

@ManyToOne(() => User, (user) => user.customProjects, { onDelete: "CASCADE" })
@JoinColumn({ name: "user_id" })
Expand Down

0 comments on commit d207be7

Please sign in to comment.