no message
This commit is contained in:
parent
5ae95710eb
commit
64470b67a1
1 changed files with 14 additions and 0 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue