From 8e0ac790f1be967511da573701204e8131785373 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 11 May 2026 22:42:28 +0000 Subject: [PATCH] Return all communications from the DB We'll filter on the frontend --- db/query/public/communication.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/db/query/public/communication.go b/db/query/public/communication.go index 7b424436..e251feb1 100644 --- a/db/query/public/communication.go +++ b/db/query/public/communication.go @@ -28,12 +28,7 @@ func CommunicationsFromOrganization(ctx context.Context, org_id int64) ([]model. statement := table.Communication.SELECT( table.Communication.AllColumns, ).FROM(table.Communication). - WHERE( - table.Communication.OrganizationID.EQ(postgres.Int(org_id)).AND( - table.Communication.Status.EQ(postgres.NewEnumValue( - model.Communicationstatus_New.String())).OR( - table.Communication.Status.EQ(postgres.NewEnumValue( - model.Communicationstatus_Opened.String()))))). + WHERE(table.Communication.OrganizationID.EQ(postgres.Int(org_id))). ORDER_BY(table.Communication.Created.DESC()) return db.ExecuteMany[model.Communication](ctx, statement) }