Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahCxrest authored Nov 30, 2024
1 parent f4f1751 commit 05ae4fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,14 +453,14 @@ async def POST_deny_loa(
json_data = await request.json()
s_loa = json_data.get("loa")
denied_by = json_data.get("denied_by")
reason = json_data.get("reason", "No reason provided.")
s_loa_item = await self.bot.loas.find_by_id(s_loa)
s_loa = s_loa_item

self.bot.dispatch("loa_deny", s_loa=s_loa, denied_by=denied_by)
self.bot.dispatch("loa_deny", s_loa=s_loa, denied_by=denied_by, reason=reason)

return 200


async def POST_send_application_wave(
self,
authorization: Annotated[str | None, Header()],
Expand Down

0 comments on commit 05ae4fa

Please sign in to comment.