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