From 432f2fa69a51ab9c267652d878c52c7df1fb9602 Mon Sep 17 00:00:00 2001 From: Javier Arias Date: Mon, 18 Nov 2024 14:47:55 +0000 Subject: [PATCH] Reinstate commnet --- thoth-api/src/model/work_relation/crud.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thoth-api/src/model/work_relation/crud.rs b/thoth-api/src/model/work_relation/crud.rs index 106ef759..b0278843 100644 --- a/thoth-api/src/model/work_relation/crud.rs +++ b/thoth-api/src/model/work_relation/crud.rs @@ -188,6 +188,8 @@ impl Crud for WorkRelation { .get_result::(connection) .map_err(Into::into) .and_then(|t| { + // On success, create a new history table entry. + // Only record the original update, not the automatic inverse update. self.new_history_entry(account_id) .insert(connection) .map(|_| t)