mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: missing user id in segment update (#5414)
This commit is contained in:
		
							parent
							
								
									ce382a4bf9
								
							
						
					
					
						commit
						295b0c073e
					
				@ -47,7 +47,7 @@ export interface ISegmentService {
 | 
			
		||||
    update(
 | 
			
		||||
        id: number,
 | 
			
		||||
        data: UpsertSegmentSchema,
 | 
			
		||||
        user: Partial<Pick<IUser, 'username' | 'email'>>,
 | 
			
		||||
        user: Partial<Pick<IUser, 'username' | 'email' | 'id'>>,
 | 
			
		||||
    ): Promise<void>;
 | 
			
		||||
 | 
			
		||||
    unprotectedUpdate(
 | 
			
		||||
 | 
			
		||||
@ -61,6 +61,7 @@ const updateSegment = (
 | 
			
		||||
): Promise<void> => {
 | 
			
		||||
    return app.services.segmentService.update(id, postData, {
 | 
			
		||||
        email: 'test@example.com',
 | 
			
		||||
        id: 1,
 | 
			
		||||
    });
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user