From c33b1e89c18944f8b5022f0c21d650683b92d717 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 5 Oct 2024 12:27:53 +0200 Subject: [bugfix] Update select of pending interaction requests to account for potential nil URI (#3392) --- internal/db/bundb/interaction.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/db/bundb/interaction.go') diff --git a/internal/db/bundb/interaction.go b/internal/db/bundb/interaction.go index 88a044b6f..a04e97905 100644 --- a/internal/db/bundb/interaction.go +++ b/internal/db/bundb/interaction.go @@ -302,9 +302,9 @@ func (i *interactionDB) GetInteractionsRequestsForAcct( bun.Ident("interaction_request"), ). // Select only interaction requests that - // are neither accepted or rejected yet, - // ie., without an Accept or Reject URI. - Where("? IS NULL", bun.Ident("uri")) + // are neither accepted or rejected yet. + Where("? IS NULL", bun.Ident("accepted_at")). + Where("? IS NULL", bun.Ident("rejected_at")) // Select interactions targeting status. if statusID != "" { -- cgit v1.2.3