mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 08:13:09 +02:00
13 lines
252 B
JavaScript
13 lines
252 B
JavaScript
const deleteUser = require('../built/models/user').deleteUser;
|
|
|
|
const args = process.argv.slice(2);
|
|
|
|
const userId = args[0];
|
|
|
|
console.log(`deleting ${userId}...`);
|
|
|
|
deleteUser(userId).then(() => {
|
|
console.log('done');
|
|
}, e => {
|
|
console.error(e);
|
|
});
|