Skip to content

Commit 64f634c

Browse files
author
Lucas Cosmo Rocha
committed
Fixing a filter's bug
1 parent 131a79d commit 64f634c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mapper/filters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function parseDate(query, options) {
9494
result.push(
9595
processQuery(options.date_field, 'lt:'.concat(normalizeDate(query.end_at, false))),
9696
processQuery(options.date_field, 'gte:'.concat(normalizeDate(
97-
getDateStartByPeriod(query.period, new Date(query.end_at))))), true) :
97+
getDateStartByPeriod(query.period, new Date(query.end_at)))))) :
9898
result.push(
9999
processQuery(options.date_field, 'lt:now'),
100100
processQuery(options.date_field, 'gte:'.concat(

0 commit comments

Comments
 (0)