fix(pagination) page=0 resulted in false thx JS

This commit is contained in:
2023-04-18 20:09:44 +02:00
parent f0e20e4130
commit fcee3909f4
14 changed files with 14 additions and 14 deletions

View File

@@ -33,7 +33,7 @@ export class RunnerOrganizationController {
let responseOrgs: ResponseRunnerOrganization[] = new Array<ResponseRunnerOrganization>();
let orgs: Array<RunnerOrganization>;
if (page) {
if (page != undefined) {
orgs = await this.runnerOrganizationRepository.find({ relations: ['contact', 'teams'], skip: page * page_size, take: page_size });
} else {
orgs = await this.runnerOrganizationRepository.find({ relations: ['contact', 'teams'] });