revalidation-follower-fix
All checks were successful
Deploy on push / deploy (push) Successful in 6s
All checks were successful
Deploy on push / deploy (push) Successful in 6s
This commit is contained in:
parent
0eb95e238b
commit
2e91f9399a
4
cache/triggers.py
vendored
4
cache/triggers.py
vendored
|
@ -37,10 +37,10 @@ def after_follower_handler(mapper, connection, target, is_delete=False):
|
||||||
|
|
||||||
if entity_type:
|
if entity_type:
|
||||||
revalidation_manager.mark_for_revalidation(
|
revalidation_manager.mark_for_revalidation(
|
||||||
target.author_id if entity_type == "authors" else target.topic_id, entity_type
|
target.author if entity_type == "authors" else target.topic, entity_type
|
||||||
)
|
)
|
||||||
if not is_delete:
|
if not is_delete:
|
||||||
revalidation_manager.mark_for_revalidation(target.follower_id, "authors")
|
revalidation_manager.mark_for_revalidation(target.follower, "authors")
|
||||||
|
|
||||||
|
|
||||||
def events_register():
|
def events_register():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user