@merkl/api 0.10.136 → 0.10.137

Sign up to get free protection for your applications and to get access to all the features.
@@ -102,6 +102,7 @@ export class OpportunityRepository {
102
102
  const actions = query.action?.split(",");
103
103
  const status = query.status?.split(",");
104
104
  const tokens = query.tokens?.split(",");
105
+ const protocols = query.mainProtocolId?.split(",");
105
106
  const sort = (query.sort === "rewards" ? "dailyRewards" : query.sort) ?? "dailyRewards";
106
107
  const order = query.order ?? "desc";
107
108
  const noFilters = Object.values(filters).every(v => v === undefined);
@@ -127,7 +128,7 @@ export class OpportunityRepository {
127
128
  {
128
129
  status: !status ? undefined : { in: status },
129
130
  },
130
- { mainProtocolId: !filters.mainProtocolId ? undefined : { equals: filters.mainProtocolId } },
131
+ { mainProtocolId: !protocols ? undefined : { in: protocols } },
131
132
  ],
132
133
  },
133
134
  };