fix(pagination) page=0 resulted in false thx JS
This commit is contained in:
@@ -29,7 +29,7 @@ export class TrackController {
|
||||
let responseTracks: ResponseTrack[] = new Array<ResponseTrack>();
|
||||
let tracks: Array<Track>;
|
||||
|
||||
if (page) {
|
||||
if (page != undefined) {
|
||||
tracks = await this.trackRepository.find({ skip: page * page_size, take: page_size });
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user