From 45bbc34dba5b5b9e9fe51b20c66f5898a0ef4c18 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 6 Jun 2024 06:51:32 +0200 Subject: [PATCH] fix: use transaction --- upub/worker/src/local.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upub/worker/src/local.rs b/upub/worker/src/local.rs index f9cad61a..6385901c 100644 --- a/upub/worker/src/local.rs +++ b/upub/worker/src/local.rs @@ -38,7 +38,7 @@ pub async fn process(ctx: Context, job: &model::job::Model) -> crate::JobResult< .select_only() .select_column(model::actor::Column::Id) .into_tuple::() - .one(ctx.db()) + .one(&tx) .await { tmp = tmp.replacen(full, &format!("@{user}"), 1);