fix(pagination) page=0 resulted in false thx JS
This commit is contained in:
@@ -30,7 +30,7 @@ export class GroupContactController {
|
||||
let responseContacts: ResponseGroupContact[] = new Array<ResponseGroupContact>();
|
||||
let contacts: Array<GroupContact>;
|
||||
|
||||
if (page) {
|
||||
if (page != undefined) {
|
||||
contacts = await this.contactRepository.find({ relations: ['groups', 'groups.parentGroup'], skip: page * page_size, take: page_size });
|
||||
} else {
|
||||
contacts = await this.contactRepository.find({ relations: ['groups', 'groups.parentGroup'] });
|
||||
|
||||
Reference in New Issue
Block a user