pagination all-sales
This commit is contained in:
		@ -443,7 +443,7 @@ func (m *DBModel) GetAllOrdersPaginated(
 | 
			
		||||
		return nil, 0, 0, err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	lastPage := totalRecords / pageSize
 | 
			
		||||
	lastPage := totalRecords/pageSize + 1
 | 
			
		||||
 | 
			
		||||
	return orders, lastPage, totalRecords, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user