This commit is contained in:
AdisakKanthawilang 2024-12-18 17:33:01 +07:00
parent b877829329
commit f79104be14

View file

@ -64,7 +64,7 @@ export class ReportController extends Controller {
if (minAge > maxAge) {
throw new HttpError(HttpStatus.NOT_FOUND, "ageMin cannot be greater than ageMax");
}
const yearInAD = year?year - 543:null;
const yearInAD = year?year:null;
const currentRevision = await this.orgRevisionRepository.findOne({
where:{
orgRevisionIsCurrent: true
@ -175,7 +175,7 @@ export class ReportController extends Controller {
if (minAge > maxAge) {
throw new HttpError(HttpStatus.NOT_FOUND, "ageMin cannot be greater than ageMax");
}
const yearInAD = year?year - 543:null;
const yearInAD = year?year:null;
const currentRevision = await this.orgRevisionRepository.findOne({
where:{
orgRevisionIsCurrent: true