mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	tests for #6455
This commit is contained in:
		| @@ -46,8 +46,8 @@ module.exports = function (Posts) { | ||||
| 	Posts.uploads.associate = function (pid, filePaths, callback) { | ||||
| 		// Adds an upload to a post's sorted set of uploads | ||||
| 		const now = Date.now(); | ||||
| 		const scores = filePaths.map(() => now); | ||||
| 		filePaths = !Array.isArray(filePaths) ? [filePaths] : filePaths; | ||||
| 		const scores = filePaths.map(() => now); | ||||
|  | ||||
| 		db.sortedSetAdd('post:' + pid + ':uploads', scores, filePaths, callback); | ||||
| 	}; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user