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: {},