fix year
This commit is contained in:
parent
b877829329
commit
f79104be14
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue