Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@connectrpc/connect-fastify": "^1.6.1",
"@connectrpc/connect-node": "^1.6.1",
"@dailydotdev/graphql-redis-subscriptions": "^2.4.3",
"@dailydotdev/schema": "0.2.53",
"@dailydotdev/schema": "0.2.55",
"@dailydotdev/ts-ioredis-pool": "^1.0.2",
"@fastify/cookie": "^11.0.2",
"@fastify/cors": "^11.1.0",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions src/schema/opportunity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1092,9 +1092,6 @@ export const resolvers: IResolvers<unknown, BaseContext> = traceResolvers<
ctx: Context,
info,
) => {
// Default to LIVE opportunities if no state is provided
const opportunityState = args.state ?? OpportunityState.LIVE;

if (!ctx.userId) {
throw new NotFoundError('Not found!');
}
Expand All @@ -1110,8 +1107,9 @@ export const resolvers: IResolvers<unknown, BaseContext> = traceResolvers<
{ key: 'createdAt', maxSize: 50 },
{
queryBuilder: (builder) => {
builder.queryBuilder.where({ state: opportunityState });
Comment thread
rebelchris marked this conversation as resolved.

if (args?.state) {
builder.queryBuilder.where({ state: args.state });
Comment thread
rebelchris marked this conversation as resolved.
Outdated
}
if (!ctx.isTeamMember) {
builder.queryBuilder
.innerJoin(
Expand Down
Loading