fix(pagination) page=0 resulted in false thx JS
This commit is contained in:
@@ -38,7 +38,7 @@ export class ScanController {
|
||||
let responseScans: ResponseScan[] = new Array<ResponseScan>();
|
||||
let scans: Array<Scan>;
|
||||
|
||||
if (page) {
|
||||
if (page != undefined) {
|
||||
scans = await this.scanRepository.find({ relations: ['runner', 'track'], skip: page * page_size, take: page_size });
|
||||
} else {
|
||||
scans = await this.scanRepository.find({ relations: ['runner', 'track'] });
|
||||
|
||||
Reference in New Issue
Block a user