1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-04-02 08:29:29 -05:00

Fix error in featuredNotes ()

This commit is contained in:
MeiMei 2018-12-23 23:23:56 +09:00 committed by syuilo
parent 49921f2dcf
commit a53e0d9f73

View file

@ -441,7 +441,7 @@ export async function updateFeatured(userId: mongo.ObjectID) {
await User.update({ _id: user._id }, {
$set: {
pinnedNoteIds: featuredNotes.map(note => note._id)
pinnedNoteIds: featuredNotes.filter(note => note != null).map(note => note._id)
}
});
}