mirror of
https://github.com/alexgo-io/redstone-cache-layer.git
synced 2026-01-12 22:43:30 +08:00
feat: add more envs
This commit is contained in:
@@ -675,10 +675,12 @@ export const prices = (router: Router) => {
|
|||||||
return res.json(await getPricesInTimeRangeForSingleToken(params));
|
return res.json(await getPricesInTimeRangeForSingleToken(params));
|
||||||
} else if (params.toTimestamp !== undefined) {
|
} else if (params.toTimestamp !== undefined) {
|
||||||
if (
|
if (
|
||||||
shouldRunTestFeature(process.env.TEST_SYMBOL_NO_INTERVAL_PERCENT)
|
shouldRunTestFeature(
|
||||||
|
process.env.TEST_SYMBOL_NO_INTERVAL_TO_TIMESTAMP_PERCENT
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
console.log(
|
console.log(
|
||||||
`Running TEST_SYMBOL_NO_INTERVAL_PERCENT: ${JSON.stringify(
|
`Running TEST_SYMBOL_NO_INTERVAL_TO_TIMESTAMP_PERCENT: ${JSON.stringify(
|
||||||
req.query
|
req.query
|
||||||
)}`
|
)}`
|
||||||
);
|
);
|
||||||
@@ -693,10 +695,12 @@ export const prices = (router: Router) => {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (
|
if (
|
||||||
shouldRunTestFeature(process.env.TEST_SYMBOL_NO_INTERVAL_PERCENT)
|
shouldRunTestFeature(
|
||||||
|
process.env.TEST_SYMBOL_NO_INTERVAL_NO_TO_TIMESTAMP_PERCENT
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
console.log(
|
console.log(
|
||||||
`Running TEST_SYMBOL_NO_INTERVAL_PERCENT: ${JSON.stringify(
|
`Running TEST_SYMBOL_NO_INTERVAL_NO_TO_TIMESTAMP_PERCENT: ${JSON.stringify(
|
||||||
req.query
|
req.query
|
||||||
)}`
|
)}`
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user