fix(api): fix shared ip route to not return the current user in the query
This commit is contained in:
		
							parent
							
								
									dd5067db37
								
							
						
					
					
						commit
						5b3515ff8e
					
				| @ -18,6 +18,9 @@ export default eventHandler(async (ev) => { | |||||||
| 				"ipLog.ip": { | 				"ipLog.ip": { | ||||||
| 					$in: [entry.ip], | 					$in: [entry.ip], | ||||||
| 				}, | 				}, | ||||||
|  | 				_id: { | ||||||
|  | 					$nin: [idee], | ||||||
|  | 				}, | ||||||
| 			}) | 			}) | ||||||
| 				.select("username _id") | 				.select("username _id") | ||||||
| 				.exec() | 				.exec() | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user