From 967cdcb332847b66f3d74cef16b1dd5715f841ae Mon Sep 17 00:00:00 2001 From: birdpump Date: Thu, 8 Aug 2024 17:36:08 -0700 Subject: [PATCH] change locker number import to type to string --- controllers/admin/adminImportData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/adminImportData.js b/controllers/admin/adminImportData.js index ca3706c..94f543a 100644 --- a/controllers/admin/adminImportData.js +++ b/controllers/admin/adminImportData.js @@ -8,7 +8,7 @@ import {parse} from 'csv-parse'; //todo we want to add a status filed to the locker locator, implement that here const formatLockerData = (obj) => { const result = {}; - result.Num = parseInt(obj.Num); + result.Num = obj.Num; result.Location = { Building: parseInt(obj.Building), Level: obj.Level,