webhooks: add type field

close #66
This commit is contained in:
Luna 2021-07-10 18:58:11 -03:00
parent dc8576857c
commit ea8f629e30
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,8 @@ async def get_webhook(
drow = dict(row)
drow["type"] = 1
drow["user"] = await app.storage.get_user(row["creator_id"])
drow.pop("creator_id")