Merge pull request #8105 from Budibase/bug/sev2/datetime-empty-filter-externaldb

Support empty / notEmpty filters for Datetime in External SQL DB
This commit is contained in:
Michael Drury 2022-10-04 12:48:53 +01:00 committed by GitHub
commit 249a9ee075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -121,7 +121,12 @@ export const buildLuceneQuery = filter => {
query.allOr = true query.allOr = true
return return
} }
if (type === "datetime" && !isHbs) { if (
type === "datetime" &&
!isHbs &&
operator !== "empty" &&
operator !== "notEmpty"
) {
// Ensure date value is a valid date and parse into correct format // Ensure date value is a valid date and parse into correct format
if (!value) { if (!value) {
return return