Don't lock excess rows in Community::set_featured_posts

pull/4579/head
dullbananas 2 months ago committed by GitHub
parent 60f9a97dfa
commit d34f8aefc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -159,6 +159,7 @@ impl Community {
post::table,
)
.filter(post::dsl::community_id.eq(community_id))
.filter(post::dsl::featured_community)
.set(post::dsl::featured_community.eq(false))
.execute(conn)
.await?;

Loading…
Cancel
Save