From 62628ea076eb249f1ac642003f34a3a2c2eb02c1 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 22 Jun 2024 04:34:00 +0200 Subject: [PATCH] fix: for batch loading use object id --- upub/core/src/selector.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/upub/core/src/selector.rs b/upub/core/src/selector.rs index fed618c5..dd46c66f 100644 --- a/upub/core/src/selector.rs +++ b/upub/core/src/selector.rs @@ -343,19 +343,19 @@ mod hell { impl BatchFillableKey for crate::model::attachment::Model { fn key(&self) -> i64 { - self.internal + self.object } } impl BatchFillableKey for crate::model::mention::Model { fn key(&self) -> i64 { - self.internal + self.object } } impl BatchFillableKey for crate::model::hashtag::Model { fn key(&self) -> i64 { - self.internal + self.object } }