events-trigger-query-fix
All checks were successful
Deploy on push / deploy (push) Successful in 25s

This commit is contained in:
2024-02-26 00:06:37 +03:00
parent b02b8276a6
commit 5ca072dfaa
6 changed files with 29 additions and 10 deletions

View File

@@ -81,8 +81,7 @@ def create_shout(_, info, inp):
# NOTE: requesting new shout back
shout = session.query(Shout).where(Shout.slug == slug).first()
if shout:
shout_dict = shout.dict()
sa = ShoutAuthor(shout=shout.id, author=author.id)
sa = ShoutAuthor(shout=shout.id, author=author.id, auto=True)
session.add(sa)
topics = (
@@ -94,6 +93,8 @@ def create_shout(_, info, inp):
t = ShoutTopic(topic=topic.id, shout=shout.id)
session.add(t)
session.commit()
reactions_follow(author.id, shout.id, True)
# notifier