Skip to content

Commit

Permalink
fix(launchpad): Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou committed Dec 18, 2024
1 parent fc6602f commit 51b7362
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/pkg/launchpad/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func (s *Launchpad) LaunchpadProjects(ctx context.Context, req *launchpadpb.Laun
}

creatorFilterSQL := "AND lp.creator_id = " + creatorID
if creatorID == nil {
if creatorID == "" {
creatorFilterSQL = ""
}

Expand All @@ -311,7 +311,7 @@ func (s *Launchpad) LaunchpadProjects(ctx context.Context, req *launchpadpb.Laun
CreatorId: string(dbProject.CreatorID),
CollectionData: string(dbProject.CollectionData),
Status: dbProject.Status,
ProposalId: &dbProject.ProposalId,
ProposalId: dbProject.ProposalId,
}
}

Expand Down Expand Up @@ -350,7 +350,7 @@ func (s *Launchpad) LaunchpadProjectById(ctx context.Context, req *launchpadpb.L
CreatorId: string(project.CreatorID),
CollectionData: string(project.CollectionData),
Status: project.Status,
ProposalId: &project.ProposalId,
ProposalId: project.ProposalId,
},
}, nil
}
Expand Down

0 comments on commit 51b7362

Please sign in to comment.