no-notify-on-entity-create
All checks were successful
Deploy to core / deploy (push) Successful in 1m42s

This commit is contained in:
Untone 2024-02-05 10:08:11 +03:00
parent 23468e4b3e
commit 77dddedae6
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ async def create_shout(_, info, inp):
reactions_follow(author.id, shout.id, True)
# notifier
await notify_shout(shout_dict, 'create')
# await notify_shout(shout_dict, 'create')
return {'shout': shout_dict}

View File

@ -12,7 +12,7 @@ async def notify_reaction(reaction, action: str = 'create'):
print(f'[services.notify] Failed to publish to channel {channel_name}: {e}')
async def notify_shout(shout, action: str = 'create'):
async def notify_shout(shout, action: str = 'update'):
channel_name = 'shout'
data = {'payload': shout, 'action': action}
try: