Alt fix
This commit is contained in:
@@ -72,7 +72,10 @@ export default class SearchHelper {
|
|||||||
offset = 0,
|
offset = 0,
|
||||||
} = options;
|
} = options;
|
||||||
|
|
||||||
const where = await this.buildWhere(team, options);
|
const where = await this.buildWhere(team, {
|
||||||
|
...options,
|
||||||
|
statusFilter: [...(options.statusFilter || []), StatusFilter.Published],
|
||||||
|
});
|
||||||
|
|
||||||
if (options.share?.includeChildDocuments) {
|
if (options.share?.includeChildDocuments) {
|
||||||
const sharedDocument = await options.share.$get("document");
|
const sharedDocument = await options.share.$get("document");
|
||||||
@@ -391,12 +394,6 @@ export default class SearchHelper {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
statusQuery.push({
|
|
||||||
publishedAt: {
|
|
||||||
[Op.ne]: null,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.statusFilter?.includes(StatusFilter.Archived)) {
|
if (options.statusFilter?.includes(StatusFilter.Archived)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user