Skip to content

Commit

Permalink
apply source formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hotzevzl committed Apr 23, 2024
1 parent bd71dee commit d6ce175
Showing 1 changed file with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,20 @@ export class TypeormFeatureAmountsPerPlanningUnitRepository
projectId: string,
featureIds: string[],
): Promise<FeatureAmountPerProjectPlanningUnit[]> {
return this.geoEntityManager
.createQueryBuilder()
.select('amount')
.addSelect('project_pu_id', 'projectPuId')
.addSelect('feature_id', 'featureId')
.from(FeatureAmountsPerPlanningUnitEntity, 'fappu')
.where('project_id = :projectId', { projectId })
.andWhere('feature_id IN (:...featureIds)', { featureIds })
/** The Marxan solver will show unexpected behaviour when seeing
* puvspr.dat rows with amount = 0 */
.andWhere('amount > 0')
.execute();
return (
this.geoEntityManager
.createQueryBuilder()
.select('amount')
.addSelect('project_pu_id', 'projectPuId')
.addSelect('feature_id', 'featureId')
.from(FeatureAmountsPerPlanningUnitEntity, 'fappu')
.where('project_id = :projectId', { projectId })
.andWhere('feature_id IN (:...featureIds)', { featureIds })
/** The Marxan solver will show unexpected behaviour when seeing
* puvspr.dat rows with amount = 0 */
.andWhere('amount > 0')
.execute()
);
}

public async saveAmountPerPlanningUnitAndFeature(
Expand Down

0 comments on commit d6ce175

Please sign in to comment.