forked from UKSOURCE/cms.hailearning.edu.vn
fix(): fix conflict
This commit is contained in:
@@ -26,8 +26,6 @@ exports.index = async (req, res) => {
|
||||
if (req.query.dateFrom || req.query.dateTo) {
|
||||
filter.createdAt = {};
|
||||
if (req.query.dateFrom) {
|
||||
filter.createdAt.$gte = new Date(req.query.dateFrom);
|
||||
}
|
||||
if (req.query.dateTo) {
|
||||
const dateTo = new Date(req.query.dateTo);
|
||||
dateTo.setHours(23, 59, 59, 999); // End of day
|
||||
|
||||
Reference in New Issue
Block a user