1
0
Fork 1
mirror of https://example.com synced 2024-11-25 12:26:39 +09:00
firefish/cli/del-usr.js
syuilo 69c452a980 🍕
2018-04-15 11:57:33 +09:00

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);
});