mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	Not cast to any
This commit is contained in:
		
							parent
							
								
									5b0aaf66eb
								
							
						
					
					
						commit
						f338fa552e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -27,7 +27,7 @@ const nativeDbConn = async (): Promise<mongodb.Db> => {
 | 
			
		|||
	if (mdb) return mdb;
 | 
			
		||||
 | 
			
		||||
	const db = await ((): Promise<mongodb.Db> => new Promise((resolve, reject) => {
 | 
			
		||||
		(mongodb as any).MongoClient.connect(uri, (e: Error, client: any) => {
 | 
			
		||||
		mongodb.MongoClient.connect(uri, (e: Error, client: any) => {
 | 
			
		||||
			if (e) return reject(e);
 | 
			
		||||
			resolve(client.db(config.mongodb.db));
 | 
			
		||||
		});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue