Alt fix
This commit is contained in:
@@ -72,7 +72,10 @@ export default class SearchHelper {
|
||||
offset = 0,
|
||||
} = options;
|
||||
|
||||
const where = await this.buildWhere(team, options);
|
||||
const where = await this.buildWhere(team, {
|
||||
...options,
|
||||
statusFilter: [...(options.statusFilter || []), StatusFilter.Published],
|
||||
});
|
||||
|
||||
if (options.share?.includeChildDocuments) {
|
||||
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)) {
|
||||
|
||||
Reference in New Issue
Block a user