Fix index creation
This commit is contained in:
		
							parent
							
								
									26d4ebfe1a
								
							
						
					
					
						commit
						6df3db23d6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3,7 +3,7 @@ import monkDb, { nativeDbConn } from '../../db/mongodb';
 | 
			
		|||
 | 
			
		||||
const collection = monkDb.get('drive_files.files');
 | 
			
		||||
 | 
			
		||||
(collection as any).createIndex('hash'); // fuck type definition
 | 
			
		||||
(collection as any).createIndex('md5'); // fuck type definition
 | 
			
		||||
 | 
			
		||||
export default collection as any; // fuck type definition
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue