From fc7753b61ece6a6132d19b4d2177c4830e2233c6 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 3 Jan 2024 12:44:44 -0600 Subject: [PATCH] fix: column ambiguity --- src/model/helpers.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/model/helpers.rs b/src/model/helpers.rs index 5d2218d0..29d0e723 100644 --- a/src/model/helpers.rs +++ b/src/model/helpers.rs @@ -827,8 +827,13 @@ pub async fn get_notifications_for_subscriber( ) -> Result { let after_clause = if after.is_some() { " - AND (created_at, id) > ( - SELECT created_at, id + AND ( + subscriber_notification.created_at, + subscriber_notification.id + ) > ( + SELECT + subscriber_notification.created_at, + subscriber_notification.id FROM subscriber_notification WHERE id=$3 )