mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-28 09:12:39 -04:00 
			
		
		
		
	* feat: improve shared link (41s to 8s) * feat: improve activity (18s to 8s) * feat: improve partner (20s to 10s) * feat: improve server-info (10s to 6s) * feat: improve system-config * fix: e2e * chore: linting
		
			
				
	
	
		
			11 lines
		
	
	
		
			378 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			378 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { PartnerResponseDto } from '@app/domain';
 | |
| import request from 'supertest';
 | |
| 
 | |
| export const partnerApi = {
 | |
|   create: async (server: any, accessToken: string, id: string) => {
 | |
|     const { status, body } = await request(server).post(`/partner/${id}`).set('Authorization', `Bearer ${accessToken}`);
 | |
|     expect(status).toBe(201);
 | |
|     return body as PartnerResponseDto;
 | |
|   },
 | |
| };
 |