sort item list by ids
This commit is contained in:
parent
3cc2c73bc2
commit
b4a2f33a19
|
@ -65,6 +65,7 @@ export class ItemsService {
|
||||||
|
|
||||||
async getItemList(cursor: number = 0): Promise<PaginatedItems> {
|
async getItemList(cursor: number = 0): Promise<PaginatedItems> {
|
||||||
const [items, count] = await this.itemRepository.findAndCount({
|
const [items, count] = await this.itemRepository.findAndCount({
|
||||||
|
order: { id: 'ASC' },
|
||||||
take: 25,
|
take: 25,
|
||||||
skip: cursor,
|
skip: cursor,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue