refactor: use async/await

This commit is contained in:
Barış Soner Uşaklı
2021-12-07 15:24:22 -05:00
parent 07217762e6
commit f4aa249d8c
2 changed files with 4 additions and 4 deletions

View File

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

View File

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