no-notify-on-entity-create
All checks were successful
Deploy to core / deploy (push) Successful in 1m42s
All checks were successful
Deploy to core / deploy (push) Successful in 1m42s
This commit is contained in:
parent
23468e4b3e
commit
77dddedae6
|
@ -81,7 +81,7 @@ async def create_shout(_, info, inp):
|
||||||
reactions_follow(author.id, shout.id, True)
|
reactions_follow(author.id, shout.id, True)
|
||||||
|
|
||||||
# notifier
|
# notifier
|
||||||
await notify_shout(shout_dict, 'create')
|
# await notify_shout(shout_dict, 'create')
|
||||||
|
|
||||||
return {'shout': shout_dict}
|
return {'shout': shout_dict}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ async def notify_reaction(reaction, action: str = 'create'):
|
||||||
print(f'[services.notify] Failed to publish to channel {channel_name}: {e}')
|
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'
|
channel_name = 'shout'
|
||||||
data = {'payload': shout, 'action': action}
|
data = {'payload': shout, 'action': action}
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user