Fix no message on timer delete

Fixes #66
This commit is contained in:
SileNce5k 2023-07-26 23:47:32 +02:00
parent 5970699061
commit bb1e668e10
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -17,9 +17,11 @@ module.exports = async function (authorID, timerID) {
if (err) {
console.error(err);
sendText = "Updating timers failed. Check console.";
reject(sendText);
}
else {
sendText = `Timer with ID:${timerID} deleted.`;
resolve(sendText);
}
});
}