mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix(scripts): better error handling for script runner and GDPR
This commit is contained in:
@@ -17,12 +17,12 @@ function setUpServer () {
|
||||
setUpServer();
|
||||
|
||||
// Replace this with your migration
|
||||
const processUsers = require('./users/takeThis.js');
|
||||
const processUsers = require('../scripts/gdpr-delete-users.js');
|
||||
processUsers()
|
||||
.then(function success () {
|
||||
process.exitCode = 0;
|
||||
process.exit(0);
|
||||
})
|
||||
.catch(function failure (err) {
|
||||
console.log(err);
|
||||
process.exitCode = 1;
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user