Adjusted notify channel as well as form

This commit is contained in:
Frisk 2024-07-18 16:27:29 +02:00
parent d5d0c0a6e6
commit 722669660c

View file

@ -88,7 +88,7 @@ class DomainManager:
json_object["domains"][name] = domain.json() json_object["domains"][name] = domain.json()
for message in messagequeue._queue: for message in messagequeue._queue:
json_object["queued_messages"].append({"metadata": str(message.discord_message.metadata), "url": message.wiki.script_url}) json_object["queued_messages"].append({"metadata": str(message.discord_message.metadata), "url": message.wiki.script_url})
await connection.execute("select pg_notify('webhookupdates', 'DEBUG RESPONSE ' || $1);", json.dumps(json_object)) await connection.execute("select pg_notify('debugresponse', $1);", json.dumps(json_object))
elif split_payload[1] == "RESPONSE": elif split_payload[1] == "RESPONSE":
return return
else: else: