@merkl/api 0.16.39 → 0.16.40
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.
@@ -164,7 +164,7 @@ export class OpportunityConvertorService {
|
|
164
164
|
}
|
165
165
|
static async logKeyAndTTLV3Opportunities(showCampaigns, test, identifier, chainId) {
|
166
166
|
const [key, ttl] = await CacheService.keyAndTTL(OpportunityConvertorService.#extractV3Opportunities, showCampaigns, test, identifier, chainId);
|
167
|
-
log.info(`Key: ${key}, TTL: ${ttl}`);
|
167
|
+
log.info(`Args: ${showCampaigns}, ${test}, ${identifier}, ${chainId}, Key: ${key}, TTL: ${ttl}`);
|
168
168
|
}
|
169
169
|
static async wrapV3Opportunities(showCampaigns, test, identifier, chainId) {
|
170
170
|
return await CacheService.wrap(TTLPresets.MIN_30, OpportunityConvertorService.#extractV3Opportunities, showCampaigns, test, identifier, chainId);
|
@@ -59,7 +59,7 @@ export default (app) => {
|
|
59
59
|
query.chainId = !query.chainId ? undefined : Number.parseInt(query.chainId.toString());
|
60
60
|
query.type = !query.type ? undefined : Number.parseInt(query.type.toString());
|
61
61
|
query.campaigns =
|
62
|
-
query.campaigns === false || query.
|
62
|
+
query.campaigns === false || query.campaigns?.toString() === "false" ? false : !!query.campaigns;
|
63
63
|
query.testTokens =
|
64
64
|
query.testTokens === false || query.testTokens?.toString() === "false" ? false : !!query.testTokens;
|
65
65
|
},
|