Skip to content

Commit

Permalink
Fix bad table var mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Oct 15, 2024
1 parent 03ac18c commit d0f9b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions API/Backend/Datasets/routes/datasets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {},
Expand Down Expand Up @@ -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: {},
Expand Down

0 comments on commit d0f9b59

Please sign in to comment.