sort item list by ids

This commit is contained in:
Lauren Liberda 2021-08-01 22:39:36 +02:00
parent 3cc2c73bc2
commit b4a2f33a19

View file

@ -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,
}); });