refactor: tab rules

This commit is contained in:
Barış Soner Uşaklı
2021-11-18 16:42:18 -05:00
parent c26870d227
commit fb363957d1
69 changed files with 128 additions and 175 deletions

View File

@@ -94,7 +94,7 @@ postsAPI.edit = async function (caller, data) {
]);
const uids = _.uniq(_.flatten(memberData).concat(String(caller.uid)));
uids.forEach(uid => websockets.in(`uid_${uid}`).emit('event:post_edited', editResult));
uids.forEach(uid => websockets.in(`uid_${uid}`).emit('event:post_edited', editResult));
return returnData;
};

View File

@@ -71,7 +71,7 @@ topicsAPI.reply = async function (caller, data) {
return queueObj;
}
const postData = await topics.reply(payload); // postData seems to be a subset of postObj, refactor?
const postData = await topics.reply(payload); // postData seems to be a subset of postObj, refactor?
const postObj = await posts.getPostSummaryByPids([postData.pid], caller.uid, {});
const result = {