mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-30 18:46:01 +01:00 
			
		
		
		
	fix: remove console logging
This commit is contained in:
		| @@ -246,12 +246,9 @@ module.exports = function (Topics) { | |||||||
| 	}; | 	}; | ||||||
|  |  | ||||||
| 	Topics.addPostToTopic = async function (tid, postData) { | 	Topics.addPostToTopic = async function (tid, postData) { | ||||||
| 		console.log('now in addPostToTopic', tid, postData); |  | ||||||
| 		const mainPid = await Topics.getTopicField(tid, 'mainPid'); | 		const mainPid = await Topics.getTopicField(tid, 'mainPid'); | ||||||
| 		console.log(mainPid); |  | ||||||
| 		if (!mainPid) { | 		if (!mainPid) { | ||||||
| 			await Topics.setTopicField(tid, 'mainPid', postData.pid); | 			await Topics.setTopicField(tid, 'mainPid', postData.pid); | ||||||
| 			console.log('what'); |  | ||||||
| 		} else { | 		} else { | ||||||
| 			const upvotes = parseInt(postData.upvotes, 10) || 0; | 			const upvotes = parseInt(postData.upvotes, 10) || 0; | ||||||
| 			const downvotes = parseInt(postData.downvotes, 10) || 0; | 			const downvotes = parseInt(postData.downvotes, 10) || 0; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user