fix: updated postgres default port

This commit is contained in:
Shridhar 2021-03-29 15:16:27 +05:30
parent 66083cece1
commit 5deec996b6

View file

@ -23,7 +23,7 @@ def is_open(ip, port, timeout=10):
def check_database():
db_type = config.get("db_type", "mariadb")
db_host = config.get("db_host", "localhost")
db_port = config.get("db_port", 3306 if db_type == "mariadb" else 5342)
db_port = config.get("db_port", 3306 if db_type == "mariadb" else 5432)
return {db_type: is_open(db_host, db_port)}