FIX: Corrigido Path do .env
All checks were successful
Deploy corp02 / deploy (push) Successful in 1s
Deploy corp04 / deploy (push) Successful in 1s
Deploy corp03 / deploy (push) Successful in 3s

This commit is contained in:
Rafael Alves Lopes 2026-04-10 12:00:05 -03:00
parent d10f664ec1
commit b0d653e809

View File

@ -379,7 +379,8 @@ def get_destinations_by_domain():
pass
def main():
load_env()
script_dir = os.path.dirname(os.path.abspath(__file__))
load_env(os.path.join(script_dir, ".env"))
# Obter registros do FreeSWITCH
output = get_registrations()
registered_users = parse_registrations(output) if output else []