|  |  | @ -792,9 +792,9 @@ fastify.post('/api/uploads_team_member/:departmentId', async (request, reply) => | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   } | 
			
		
	
		
		
			
				
					
					|  |  |  | }); |  |  |  | }); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | fastify.post('/api/uploads_company_profile/:cityId', async (request, reply) => { |  |  |  | fastify.post('/api/uploads_company_profile/:customerId', async (request, reply) => { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   try { |  |  |  |   try { | 
			
		
	
		
		
			
				
					
					|  |  |  |     const cityId = request.params.cityId; |  |  |  |     const customerId = request.params.customerId; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     const data = await request.file(); |  |  |  |     const data = await request.file(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     // Generate a unique file name
 |  |  |  |     // Generate a unique file name
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -818,7 +818,7 @@ fastify.post('/api/uploads_company_profile/:cityId', async (request, reply) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         const publicUrl = `https://storage.googleapis.com/${bucketName}/${filePath}`; |  |  |  |         const publicUrl = `https://storage.googleapis.com/${bucketName}/${filePath}`; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         CompanyProfilePicture.findOneAndUpdate( |  |  |  |         CompanyProfilePicture.findOneAndUpdate( | 
			
		
	
		
		
			
				
					
					|  |  |  |           { cityId }, |  |  |  |           { customerId }, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           { picture: publicUrl }, |  |  |  |           { picture: publicUrl }, | 
			
		
	
		
		
			
				
					
					|  |  |  |           { new: true, upsert: true }, |  |  |  |           { new: true, upsert: true }, | 
			
		
	
		
		
			
				
					
					|  |  |  |           (error, picture) => { |  |  |  |           (error, picture) => { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |