mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	fix: removed console.logs
This commit is contained in:
		| @@ -55,8 +55,6 @@ module.exports = function (Groups) { | ||||
| 	}; | ||||
|  | ||||
| 	Groups.removeCover = async function (data) { | ||||
| 		console.log('in removeCover', data); | ||||
| 		await db.deleteObjectFields('group:' + data.groupName, ['cover:url', 'cover:thumb:url', 'cover:position']); | ||||
| 		console.log('field deleted'); | ||||
| 	}; | ||||
| }; | ||||
|   | ||||
| @@ -329,7 +329,6 @@ SocketGroups.cover.remove = async (socket, data) => { | ||||
| 	} | ||||
|  | ||||
| 	await canModifyGroup(socket.uid, data.groupName); | ||||
| 	console.log('calling groups.removeCover'); | ||||
| 	await groups.removeCover(data); | ||||
| }; | ||||
|  | ||||
|   | ||||
| @@ -127,7 +127,6 @@ describe('Groups', function () { | ||||
|  | ||||
| 		it('should return the "Test" group when searched for', function (done) { | ||||
| 			socketGroups.search({ uid: adminUid }, { query: 'test' }, function (err, groups) { | ||||
| 				console.log(groups); | ||||
| 				assert.ifError(err); | ||||
| 				assert.equal(2, groups.length); | ||||
| 				assert.strictEqual('Test', groups[0].name); | ||||
| @@ -1378,7 +1377,6 @@ describe('Groups', function () { | ||||
| 			socketGroups.cover.remove({ uid: adminUid }, { groupName: 'Test' }, function (err) { | ||||
| 				assert.ifError(err); | ||||
| 				db.getObjectFields('group:Test', ['cover:url'], function (err, groupData) { | ||||
| 					console.log('checking value', groupData); | ||||
| 					assert.ifError(err); | ||||
| 					assert(!groupData['cover:url']); | ||||
| 					done(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user