Skip to content

Commit

Permalink
fix: column ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Jan 5, 2024
1 parent 615a76f commit fc7753b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/model/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,13 @@ pub async fn get_notifications_for_subscriber(
) -> Result<GetNotificationsResult, sqlx::error::Error> {
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
)
Expand Down

0 comments on commit fc7753b

Please sign in to comment.