@merkl/api 0.14.7 → 0.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,6 @@ import { OpportunityService } from "../opportunity";
|
|
6
6
|
import { InvalidParameter } from "../../../utils/error";
|
7
7
|
import { executeSimple } from "../../../utils/execute";
|
8
8
|
import { log } from "../../../utils/logger";
|
9
|
-
import { apiDbClient } from "../../../utils/prisma";
|
10
9
|
import { NETWORK_LABELS, } from "@sdk";
|
11
10
|
import { utils } from "ethers";
|
12
11
|
import moment from "moment";
|
@@ -152,17 +151,6 @@ export class CampaignService {
|
|
152
151
|
return await CampaignRepository.findUniqueOrThrow(id);
|
153
152
|
}
|
154
153
|
static async findCampaignsToProcess(distributionChainId) {
|
155
|
-
await apiDbClient.campaignStatus.updateMany({
|
156
|
-
data: {
|
157
|
-
status: "SUCCESS",
|
158
|
-
},
|
159
|
-
where: {
|
160
|
-
Campaign: {
|
161
|
-
distributionChainId: 324,
|
162
|
-
},
|
163
|
-
status: "PROCESSING",
|
164
|
-
},
|
165
|
-
});
|
166
154
|
return (await CampaignRepository.findCampaignsToProcess(distributionChainId)).filter(campaign => campaign.endTimestamp > campaign?.CampaignStatus?.[0]?.computedUntil);
|
167
155
|
}
|
168
156
|
static async findNextCampaignToProcess(chainId) {
|