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) { Config.remove = async function (socket, key) {
meta.configs.remove(key, callback); await meta.configs.remove(key);
}; };

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

Loading…
Cancel
Save