Fix some typos
This commit is contained in:
parent
1bc7826303
commit
2e43ee2118
@ -9,7 +9,7 @@ export type AggregationMethodFunction = (buildingId: number, attributeName: stri
|
|||||||
|
|
||||||
export async function aggregateCountTrue(buildingId: number, attributeName: string, t?: ITask<any>): Promise<number> {
|
export async function aggregateCountTrue(buildingId: number, attributeName: string, t?: ITask<any>): Promise<number> {
|
||||||
try {
|
try {
|
||||||
// use pg-format here instead of pg-promise parameterised queries as they don't support column name from paraemeter
|
// use pg-format here instead of pg-promise parameterised queries as they don't support column name from parameter
|
||||||
// assume that there won't be more likes than Postgres int range and cast to int
|
// assume that there won't be more likes than Postgres int range and cast to int
|
||||||
// otherwise the count is returned as a bigint which has less support in node-postgres
|
// otherwise the count is returned as a bigint which has less support in node-postgres
|
||||||
const query = format(`SELECT count(*)::int as agg FROM building_user_attributes WHERE building_id = %L::int AND %I = true;`, buildingId, attributeName);
|
const query = format(`SELECT count(*)::int as agg FROM building_user_attributes WHERE building_id = %L::int AND %I = true;`, buildingId, attributeName);
|
||||||
|
@ -19,7 +19,7 @@ export enum Category {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the sole configuration variable that defines the order of the categories
|
* This is the sole configuration variable that defines the order of the categories
|
||||||
* in the category grid. The order in the enum defition or the other configs does
|
* in the category grid. The order in the enum definition or the other configs does
|
||||||
* not affect the order of the grid.
|
* not affect the order of the grid.
|
||||||
*/
|
*/
|
||||||
export const categoriesOrder: Category[] = [
|
export const categoriesOrder: Category[] = [
|
||||||
|
@ -385,7 +385,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
|
|||||||
sust_aggregate_estimate_epc: {
|
sust_aggregate_estimate_epc: {
|
||||||
category: Category.Sustainability,
|
category: Category.Sustainability,
|
||||||
title: "EPC Rating",
|
title: "EPC Rating",
|
||||||
tooltip: "(Energy Performance Certifcate) Any premises sold or rented is required to have an EPC to show how energy efficient it is. Only buildings rate grade E or higher maybe rented",
|
tooltip: "(Energy Performance Certificate) Any premises sold or rented is required to have an EPC to show how energy efficient it is. Only buildings rate grade E or higher maybe rented",
|
||||||
example: "",
|
example: "",
|
||||||
},
|
},
|
||||||
sust_retrofit_date: {
|
sust_retrofit_date: {
|
||||||
|
Loading…
Reference in New Issue
Block a user