mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-04 03:43:34 +00:00 
			
		
		
		
	Fix fetch user mongoose
This commit is contained in:
		
							parent
							
								
									e5654758cc
								
							
						
					
					
						commit
						00d6284552
					
				@ -12,9 +12,9 @@ module.exports = {
 | 
			
		||||
 | 
			
		||||
    const result = this.aggregate(aggregateStages);
 | 
			
		||||
 | 
			
		||||
    if (_.has(filters, 'start')) result.skip(filters.start);
 | 
			
		||||
    if (_.has(filters, 'limit')) result.limit(filters.limit);
 | 
			
		||||
    if (_.has(filters, 'sort')) result.sort(filters.sort);
 | 
			
		||||
    if (_.has(filters, 'start') && filters.start) result.skip(filters.start);
 | 
			
		||||
    if (_.has(filters, 'limit') && filters.limit) result.limit(filters.limit);
 | 
			
		||||
    if (_.has(filters, 'sort') && filters.sort) result.sort(filters.sort);
 | 
			
		||||
 | 
			
		||||
    return result;
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user