refactor: use async/await

isekai-main
Barış Soner Uşaklı 3 years ago
parent 07217762e6
commit f4aa249d8c

@ -45,6 +45,6 @@ Config.setMultiple = async function (socket, data) {
}
};
Config.remove = function (socket, key, callback) {
meta.configs.remove(key, callback);
Config.remove = async function (socket, key) {
await meta.configs.remove(key);
};

@ -4,6 +4,6 @@ const meta = require('../../meta');
const Errors = module.exports;
Errors.clear = function (socket, data, callback) {
meta.errors.clear(callback);
Errors.clear = async function () {
await meta.errors.clear();
};

Loading…
Cancel
Save