fix: search posts with category
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -147,7 +147,10 @@ export class SearchService {
|
||||
return model
|
||||
.findById(objectID)
|
||||
.select('_id title created modified categoryId slug nid')
|
||||
.lean()
|
||||
.lean({
|
||||
getters: true,
|
||||
autopopulate: true,
|
||||
})
|
||||
.then((doc) => {
|
||||
if (doc) {
|
||||
Reflect.set(doc, 'type', type)
|
||||
|
||||
Reference in New Issue
Block a user