Started work on toke logic
This commit is contained in:
parent
5fe1620c20
commit
d85f906a69
7 changed files with 160 additions and 16 deletions
|
|
@ -76,7 +76,7 @@ module.exports.delete = async function(req, res){
|
|||
return errorHandler(res, `Cannot delete non-existant toke command '!${command}'!`);
|
||||
}
|
||||
|
||||
await tokeCommandModel.deleteOne({_id: tokeDB._id});
|
||||
await tokeDB.deleteOne();
|
||||
|
||||
//Return the updated command list
|
||||
res.status(200);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue