no message

This commit is contained in:
Bright 2025-02-24 11:50:52 +07:00
parent 5ae95710eb
commit 64470b67a1

View file

@ -191,6 +191,13 @@ export class ReportController extends Controller {
@Query() sortBy: string = "posMasterNo",
@Query() sort: "ASC" | "DESC" = "ASC",
) {
const _null: any = null;
if(!dateStart) {
dateStart = _null
}
if(!dateEnd) {
dateEnd = _null
}
if (ageMin && (ageMin < 18 || ageMin > 60)) {
throw new HttpError(HttpStatus.NOT_FOUND, "ageMin must be between 18 and 60");
}
@ -487,6 +494,13 @@ export class ReportController extends Controller {
@Query() sortBy: string = "posMasterNo",
@Query() sort: "ASC" | "DESC" = "ASC",
) {
const _null: any = null;
if(!dateStart) {
dateStart = _null
}
if(!dateEnd) {
dateEnd = _null
}
if (ageMin && (ageMin < 18 || ageMin > 60)) {
throw new HttpError(HttpStatus.NOT_FOUND, "ageMin must be between 18 and 60");
}