From d0f9b591e71b823253e2c4e1f594d429a2c7fc81 Mon Sep 17 00:00:00 2001 From: tariqksoliman Date: Tue, 15 Oct 2024 16:07:02 -0700 Subject: [PATCH] Fix bad table var mappings --- API/Backend/Datasets/routes/datasets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/API/Backend/Datasets/routes/datasets.js b/API/Backend/Datasets/routes/datasets.js index 6f53d0fa..ca807069 100644 --- a/API/Backend/Datasets/routes/datasets.js +++ b/API/Backend/Datasets/routes/datasets.js @@ -466,7 +466,7 @@ router.post("/upload", function (req, res, next) { sequelize .query( "TRUNCATE TABLE " + - Utils.forceAlphaNumUnder(table) + + Utils.forceAlphaNumUnder(result.table) + " RESTART IDENTITY", { replacements: {}, @@ -526,7 +526,7 @@ router.post("/recreate", function (req, res, next) { sequelize .query( "TRUNCATE TABLE " + - Utils.forceAlphaNumUnder(table) + + Utils.forceAlphaNumUnder(result.table) + " RESTART IDENTITY", { replacements: {},