Skip to content

Commit

Permalink
permitting users to filter date and hour selecting only 'start' date/…
Browse files Browse the repository at this point in the history
…time.
  • Loading branch information
rafaelblink committed Feb 2, 2021
1 parent a1883d0 commit a48f0ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/server/raw/LivechatRooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ export class LivechatRoomsRaw extends BaseRaw {
}
if (createdAt.start && !createdAt.end) {
query.ts.$gte = moment(createdAt.start).set({ hour: '00', minutes: '00', seconds: '00' }).toDate();
query.ts.$lte = moment(createdAt.start).set({ hour: '29', minutes: '59', seconds: '59' }).toDate();
query.ts.$lte = moment(createdAt.start).toDate();
}
if (createdAt.end && !createdAt.start) {
query.ts.$gte = moment('1800/01/01', 'YYYY-MM-DD').toDate();
Expand Down

0 comments on commit a48f0ab

Please sign in to comment.