/api/backupProduct
This commit is contained in:
		
							parent
							
								
									ea0ac0ba94
								
							
						
					
					
						commit
						059af5b0dd
					
				| 
						 | 
				
			
			@ -389,6 +389,7 @@ Route.post("/api/backupProduct", async ({ request, response }) => {
 | 
			
		|||
    
 | 
			
		||||
    const addProduct = await Product.createMany(res.data)
 | 
			
		||||
    console.log(addProduct)
 | 
			
		||||
    response.status(200).send("Add "+res.data.length+" success!");
 | 
			
		||||
  } catch (error) {
 | 
			
		||||
    response.status(500).send(error);
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue