Add additional filters to search_titles endpoint (#4563)
* Add additional filters to search_titles endpoint * tests, fixes for drafts * fix: dateFilter results in 500 * fix: Draft documents returned in collection-only search
This commit is contained in:
@@ -365,14 +365,19 @@ export async function buildDocument(
|
||||
}
|
||||
|
||||
count++;
|
||||
return Document.create({
|
||||
title: `Document ${count}`,
|
||||
text: "This is the text in an example document",
|
||||
publishedAt: isNull(overrides.collectionId) ? null : new Date(),
|
||||
lastModifiedById: overrides.userId,
|
||||
createdById: overrides.userId,
|
||||
...overrides,
|
||||
});
|
||||
return Document.create(
|
||||
{
|
||||
title: `Document ${count}`,
|
||||
text: "This is the text in an example document",
|
||||
publishedAt: isNull(overrides.collectionId) ? null : new Date(),
|
||||
lastModifiedById: overrides.userId,
|
||||
createdById: overrides.userId,
|
||||
...overrides,
|
||||
},
|
||||
{
|
||||
silent: overrides.createdAt || overrides.updatedAt ? true : false,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export async function buildFileOperation(
|
||||
|
||||
Reference in New Issue
Block a user