Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
fix(daemon): remove deleted contend from feed.
Browse files Browse the repository at this point in the history
  • Loading branch information
juligasa committed May 14, 2024
1 parent b10541f commit 2a3dab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/daemon/api/activity/v1alpha/activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (srv *Server) ListEvents(ctx context.Context, req *activity.ListEventsReque
var cursorBlobID int64 = math.MaxInt32
var err error
if req.PageToken != "" {
pageTokenBytes, _ := base64.StdEncoding.DecodeString(req.PageToken)
pageTokenBytes, err := base64.StdEncoding.DecodeString(req.PageToken)
if err != nil {
return nil, fmt.Errorf("Token encoding not valid: %w", err)
}
Expand Down Expand Up @@ -153,7 +153,7 @@ func (srv *Server) ListEvents(ctx context.Context, req *activity.ListEventsReque
joinLinksStr = "JOIN " + storage.ResourceLinks.String() + " ON " + storage.StructuralBlobsID.String() + "=" + storage.ResourceLinksSource.String()
leftjoinResourcesStr = "LEFT JOIN " + storage.Resources.String() + " ON " + storage.StructuralBlobsResource.String() + "=" + storage.ResourcesID.String()

pageTokenStr = storage.BlobsID.String() + " <= :idx AND (" + storage.ResourcesIRI.String() + " NOT IN (SELECT " + storage.DraftsViewResource.String() + " from " + storage.DraftsView.String() + ") OR " + storage.ResourcesIRI.String() + " IS NULL) ORDER BY " + storage.BlobsID.String() + " desc limit :page_size"
pageTokenStr = storage.BlobsID.String() + " <= :idx AND (" + storage.ResourcesIRI.String() + " NOT IN (SELECT " + storage.DraftsViewResource.String() + " from " + storage.DraftsView.String() + ") OR " + storage.ResourcesIRI.String() + " IS NULL) AND " + storage.BlobsSize.String() + ">0 ORDER BY " + storage.BlobsID.String() + " desc limit :page_size"
)

var getEventsStr = fmt.Sprintf(`
Expand Down

0 comments on commit 2a3dab6

Please sign in to comment.