diff --git a/server/migrations/20240930113921-hash-api-keys.js b/server/migrations/20240930113921-hash-api-keys.js index ef23f58fbb..7a6b7f0ad1 100644 --- a/server/migrations/20240930113921-hash-api-keys.js +++ b/server/migrations/20240930113921-hash-api-keys.js @@ -1,6 +1,6 @@ "use strict"; -const { execSync } = require("child_process"); +const { execFileSync } = require("child_process"); const path = require("path"); /** @type {import('sequelize-cli').Migration} */ @@ -20,7 +20,7 @@ module.exports = { `server/scripts/${scriptName}` ); - execSync(`node ${scriptPath}`, { stdio: "inherit" }); + execFileSync("node", [scriptPath], { stdio: "inherit" }); }, async down() {