diff --git a/src/meta/assessment/table.ts b/src/meta/assessment/table.ts index ec92da28be..825073bcef 100644 --- a/src/meta/assessment/table.ts +++ b/src/meta/assessment/table.ts @@ -9,14 +9,15 @@ import { Unit } from 'meta/assessment/unit' export enum TableNames { biomassStockAvg = 'biomassStockAvg', biomassStockTotal = 'biomassStockTotal', + biomassStock_biomassStockStatus = 'biomassStock_biomassStockStatus', carbonStock = 'carbonStock', carbonStockAvg = 'carbonStockAvg', + carbonStockSoilDepth = 'carbonStockSoilDepth', carbonStockTotal = 'carbonStockTotal', climaticDomain = 'climaticDomain', extentOfForest = 'extentOfForest', extentOfForest_forestAreaStatusAndTrend = 'extentOfForest_forestAreaStatusAndTrend', growingStock_growingStockStatus = 'growingStock_growingStockStatus', - biomassStock_biomassStockStatus = 'biomassStock_biomassStockStatus', forestAreaWithinProtectedAreas = 'forestAreaWithinProtectedAreas', forestCharacteristics = 'forestCharacteristics', forestOwnership = 'forestOwnership', diff --git a/src/server/controller/cycleData/getBulkDownload/getContentVariables.ts b/src/server/controller/cycleData/getBulkDownload/getContentVariables.ts index 55a335860d..e358c275b6 100644 --- a/src/server/controller/cycleData/getBulkDownload/getContentVariables.ts +++ b/src/server/controller/cycleData/getBulkDownload/getContentVariables.ts @@ -47,6 +47,10 @@ export const getContentVariables = async (props: Props & { fileName: string; ent cols = ['growingStockPercent', 'growingStockMillionCubicMeter'] } + if (tableName === TableNames.carbonStockSoilDepth) { + cols = ['soil_depth'] + } + await Promises.each(variables, async (variable) => { const { csvColumn, variableName } = variable