This commit is contained in:
parent
283ad80632
commit
a9d181db8f
|
@ -12,7 +12,7 @@ from utils.logger import root_logger as logger
|
||||||
|
|
||||||
@query.field("get_my_rates_comments")
|
@query.field("get_my_rates_comments")
|
||||||
@login_required
|
@login_required
|
||||||
async def get_my_rates_comments(_, info, comments: list[int], shout: int) -> list[dict]:
|
async def get_my_rates_comments(_, info, comments: list[int]) -> list[dict]:
|
||||||
"""
|
"""
|
||||||
Получение реакций пользователя на комментарии
|
Получение реакций пользователя на комментарии
|
||||||
"""
|
"""
|
||||||
|
@ -26,7 +26,6 @@ async def get_my_rates_comments(_, info, comments: list[int], shout: int) -> lis
|
||||||
select(Reaction.id.label("comment_id"), Reaction.kind.label("my_rate"))
|
select(Reaction.id.label("comment_id"), Reaction.kind.label("my_rate"))
|
||||||
.where(
|
.where(
|
||||||
and_(
|
and_(
|
||||||
Reaction.shout == shout,
|
|
||||||
Reaction.reply_to.in_(comments),
|
Reaction.reply_to.in_(comments),
|
||||||
Reaction.created_by == author_id,
|
Reaction.created_by == author_id,
|
||||||
Reaction.deleted_at.is_(None),
|
Reaction.deleted_at.is_(None),
|
||||||
|
|
|
@ -34,7 +34,7 @@ type Query {
|
||||||
|
|
||||||
# rating
|
# rating
|
||||||
get_my_rates_shouts(shouts: [Int!]!): [MyRateShout]
|
get_my_rates_shouts(shouts: [Int!]!): [MyRateShout]
|
||||||
get_my_rates_comments(comments: [Int!]!, shout: Int!): [MyRateComment]
|
get_my_rates_comments(comments: [Int!]!): [MyRateComment]
|
||||||
|
|
||||||
# public feeds
|
# public feeds
|
||||||
load_shouts_with_topic(slug: String, options: LoadShoutsOptions): [Shout] # topic feed
|
load_shouts_with_topic(slug: String, options: LoadShoutsOptions): [Shout] # topic feed
|
||||||
|
|
Loading…
Reference in New Issue
Block a user