habulaj commited on
Commit
1cab411
·
verified ·
1 Parent(s): ca8a5ca

Update routes/support.py

Browse files
Files changed (1) hide show
  1. routes/support.py +2 -2
routes/support.py CHANGED
@@ -286,7 +286,7 @@ async def respond_ticket(
286
  ticket = ticket_data[0]
287
 
288
  support_id = ticket.get("support_id")
289
- ticket_creator_id = ticket.get("user")
290
 
291
  # 2. Verificar/Atribuir suporte
292
  if support_id is None:
@@ -319,7 +319,7 @@ async def respond_ticket(
319
 
320
  # 3. Espera 1 segundo antes de enviar a mensagem
321
  await asyncio.sleep(1)
322
-
323
  # 3.1. Reabrir ticket se estiver fechado
324
  if ticket.get("finished", False) is True:
325
  async with aiohttp.ClientSession() as session:
 
286
  ticket = ticket_data[0]
287
 
288
  support_id = ticket.get("support_id")
289
+ ticket_creator_id = ticket.get("user_id") # <- CORRIGIDO AQUI
290
 
291
  # 2. Verificar/Atribuir suporte
292
  if support_id is None:
 
319
 
320
  # 3. Espera 1 segundo antes de enviar a mensagem
321
  await asyncio.sleep(1)
322
+
323
  # 3.1. Reabrir ticket se estiver fechado
324
  if ticket.get("finished", False) is True:
325
  async with aiohttp.ClientSession() as session: