move-author-fix
All checks were successful
Deploy to core / deploy (push) Successful in 1m26s

This commit is contained in:
2024-02-22 23:32:26 +03:00
parent f8dafda86b
commit d69f29bda3
3 changed files with 12 additions and 14 deletions

View File

@@ -77,7 +77,7 @@ async def update_follows_for_user(
async def handle_author_follower_change(connection, author_id, follower_id, is_insert):
q = select(Author).filter(Author.id == author_id)
q = add_author_stat_columns(q)
q = add_author_stat_columns(q, author_model=Author)
async with connection.begin() as conn:
[author, shouts_stat, followers_stat, followings_stat] = await conn.execute(
q