Started work on toke logic

This commit is contained in:
rainbow napkin 2024-12-13 18:28:48 -05:00
parent 5fe1620c20
commit d85f906a69
7 changed files with 160 additions and 16 deletions

View file

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