Skip to content

Commit 441f969

Browse files
unknownunknown
authored andcommitted
#5-08-2024
1 parent 451e508 commit 441f969

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • appsTeacher

appsTeacher/groupsAmountsReports/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = function init(site) {
4141
};
4242

4343
let where = req.data;
44-
if (where.dateFrom > where.ToFrom) {
44+
if (where.dateFrom > where.dateTo || !where.dateTo) {
4545
response.error = "Dates is Wrong";
4646
res.json(response);
4747
return;

appsTeacher/studentAmountsReports/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = function init(site) {
4141
};
4242

4343
let where = req.data;
44-
if (where.dateFrom > where.ToFrom) {
44+
if (where.dateFrom > where.dateTo || !where.dateTo) {
4545
response.error = "Dates is Wrong";
4646
res.json(response);
4747
return;

0 commit comments

Comments
 (0)