refactor: single line

This commit is contained in:
Barış Soner Uşaklı
2024-10-15 11:03:46 -04:00
parent a309918ec0
commit 120b184e58

View File

@@ -165,8 +165,7 @@ module.exports = function (Topics) {
Topics.reply = async function (data) { Topics.reply = async function (data) {
data = await plugins.hooks.fire('filter:topic.reply', data); data = await plugins.hooks.fire('filter:topic.reply', data);
const { tid } = data; const { tid, uid } = data;
const { uid } = data;
const [topicData, isAdmin] = await Promise.all([ const [topicData, isAdmin] = await Promise.all([
Topics.getTopicData(tid), Topics.getTopicData(tid),