From 7c5664f11ce8a948c83ccbe05a707084546ed908 Mon Sep 17 00:00:00 2001 From: ciatph Date: Fri, 13 Jan 2023 15:55:07 +0800 Subject: [PATCH] chore: Add a numeric ID to each recommendation row --- src/01_recommendations/src/extract.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/01_recommendations/src/extract.js b/src/01_recommendations/src/extract.js index ca46a16..8ccc09d 100644 --- a/src/01_recommendations/src/extract.js +++ b/src/01_recommendations/src/extract.js @@ -73,6 +73,7 @@ module.exports.extractExcelData = (ExcelTab, excelFilePath) => { obj[ExcelTab.EXCEL_COLUMN_NAMES[key]] = value } + obj.id = list.length list.push(obj) }