Fix error in featuredNotes (#3730)
This commit is contained in:
		
							parent
							
								
									49921f2dcf
								
							
						
					
					
						commit
						a53e0d9f73
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -441,7 +441,7 @@ export async function updateFeatured(userId: mongo.ObjectID) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	await User.update({ _id: user._id }, {
 | 
						await User.update({ _id: user._id }, {
 | 
				
			||||||
		$set: {
 | 
							$set: {
 | 
				
			||||||
			pinnedNoteIds: featuredNotes.map(note => note._id)
 | 
								pinnedNoteIds: featuredNotes.filter(note => note != null).map(note => note._id)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	});
 | 
						});
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue