mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 09:56:44 +00:00 
			
		
		
		
	added mising await statement in bookshelf template
This commit is contained in:
		
							parent
							
								
									c50a586418
								
							
						
					
					
						commit
						f0f4b13b8f
					
				| @ -121,7 +121,7 @@ module.exports = { | ||||
|     const data = _.omit(values, <%= globalID %>.associations.map(ast => ast.alias)); | ||||
| 
 | ||||
|     // Create entry with no-relational data. | ||||
|     const entry = <%= globalID %>.forge(params).save(data); | ||||
|     const entry = await <%= globalID %>.forge(params).save(data); | ||||
| 
 | ||||
|     // Create relational data and return the entry. | ||||
|     return <%= globalID %>.updateRelations(Object.assign(params, { values: relations })); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Oleksandr Zhuravlov
						Oleksandr Zhuravlov