Interface change to return eventId after POST call
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Jenkins Production Deployment
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Jenkins Production Deployment
				
			This commit is contained in:
		
							parent
							
								
									65a5e91ad1
								
							
						
					
					
						commit
						a34a5df5a3
					
				| 
						 | 
				
			
			@ -146,7 +146,10 @@ eventsRouter.post('/', async (req: Request, res: Response) => {
 | 
			
		|||
 | 
			
		||||
		let eventId = await EventService.createEvent(event);
 | 
			
		||||
 | 
			
		||||
		res.status(201).send({'message': 'Event with id ' + eventId + ' was created successfully.'});
 | 
			
		||||
		res.status(201).send({
 | 
			
		||||
			'message': 'Event with id ' + eventId + ' was created successfully.',
 | 
			
		||||
			'eventId': eventId
 | 
			
		||||
		});
 | 
			
		||||
	} catch (e: any) {
 | 
			
		||||
		let errorGuid = Guid.create().toString();
 | 
			
		||||
		logger.error('Error handling a request: ' + e.message, {reference: errorGuid});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user