src/topics/delete.js
Function exports
has 116 lines of code (exceeds 75 allowed). Consider refactoring. Open
Open
module.exports = function (Topics) {
Topics.delete = async function (tid, uid) {
const cid = await Topics.getTopicField(tid, 'cid');
await removeTopicPidsFromCid(tid, cid);
await Topics.setTopicFields(tid, {