new(basic.gblib): Video in WPP templates.
This commit is contained in:
		
							parent
							
								
									f137579013
								
							
						
					
					
						commit
						b09222ca0c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -655,7 +655,7 @@ export class GBConversationalService {
 | 
			
		|||
    let mediaFile = !isMedia ? /(.*)\n/gim.exec(text)[0].trim() : text;
 | 
			
		||||
 | 
			
		||||
    // Set folder based on media type
 | 
			
		||||
    const folder = mediaType === 'videos' ? 'videos' : 'images';
 | 
			
		||||
    const folder = mediaType === 'video' ? 'videos' : 'images';
 | 
			
		||||
    const gbaiName = DialogKeywords.getGBAIPath(min.botId);
 | 
			
		||||
    const fileUrl = urlJoin(process.env.BOT_URL, 'kb', gbaiName, `${min.botId}.gbkb`, folder, mediaFile);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue