mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	
							parent
							
								
									e9360ac892
								
							
						
					
					
						commit
						66165b1935
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -43,6 +43,8 @@ export default function load() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (config.autoAdmin == null) config.autoAdmin = false;
 | 
						if (config.autoAdmin == null) config.autoAdmin = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (!config.redis.prefix) config.redis.prefix = mixin.host;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return Object.assign(config, mixin);
 | 
						return Object.assign(config, mixin);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -155,7 +155,7 @@ export function initDb(justBorrow = false, sync = false, log = false) {
 | 
				
			||||||
				host: config.redis.host,
 | 
									host: config.redis.host,
 | 
				
			||||||
				port: config.redis.port,
 | 
									port: config.redis.port,
 | 
				
			||||||
				password: config.redis.pass,
 | 
									password: config.redis.pass,
 | 
				
			||||||
				prefix: config.redis.prefix,
 | 
									prefix: `${config.redis.prefix}:query:`,
 | 
				
			||||||
				db: config.redis.db || 0
 | 
									db: config.redis.db || 0
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		} : false,
 | 
							} : false,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue