fix(pagination) page=0 resulted in false thx JS
This commit is contained in:
@@ -30,7 +30,7 @@ export class ScanStationController {
|
||||
let responseStations: ResponseScanStation[] = new Array<ResponseScanStation>();
|
||||
let stations: Array<ScanStation>;
|
||||
|
||||
if (page) {
|
||||
if (page != undefined) {
|
||||
stations = await this.stationRepository.find({ relations: ['track'], skip: page * page_size, take: page_size });
|
||||
} else {
|
||||
stations = await this.stationRepository.find({ relations: ['track'] });
|
||||
|
||||
Reference in New Issue
Block a user