| 
					
				 | 
			
			
				@@ -393,7 +393,7 @@ exports.backup = handleError(async (req, res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     (async () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const path = 'backup/' + new Date().getTime() + '-chunk.json' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const chunk = await chunkModel.find().lean() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      fs.writeFileSync(path, chunk) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      fs.writeFileSync(path, JSON.stringify(chunk)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // const { size } = fs.statSync(path) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // const mimetype = 'application/json' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // const buffer = fs.readFileSync(path) 
			 |