refactor: async/await flags

This commit is contained in:
Barış Soner Uşaklı
2019-09-26 22:51:11 -04:00
parent 310c6fd33f
commit 0ced71be39
2 changed files with 155 additions and 260 deletions

View File

@@ -12,7 +12,7 @@ const plugins = require('../plugins');
module.exports = function (Topics) {
Topics.getSortedTopics = async function (params) {
var data = {
const data = {
nextStart: 0,
topicCount: 0,
topics: [],