sort item list by ids

master
Lauren Liberda 2021-08-01 22:39:36 +02:00
parent 3cc2c73bc2
commit b4a2f33a19
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ export class ItemsService {
async getItemList(cursor: number = 0): Promise<PaginatedItems> {
const [items, count] = await this.itemRepository.findAndCount({
order: { id: 'ASC' },
take: 25,
skip: cursor,
});