Skip to content

Commit 98090fa

Browse files
authored
Merge pull request #674 from PolymathNetwork/fix/dupe-emails
enable emails listener in prod only
2 parents a00dad6 + e8aeb46 commit 98090fa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/polymath-offchain/src/startup/setupWeb3.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @flow
22

3-
import { STO_MODULE_TYPE, NETWORKS } from '../constants';
3+
import { STO_MODULE_TYPE, NETWORKS, DEPLOYMENT_STAGE } from '../constants';
44
import {
55
sendCappedSTOScheduledEmail,
66
sendUSDTieredSTOScheduledEmail,
@@ -566,6 +566,7 @@ export const addSTOListeners = async (networkId: string) => {
566566
* @param {string} networkId id of the network to which we will set the listeners
567567
*/
568568
const setupListeners = async (networkId: string) => {
569+
if (DEPLOYMENT_STAGE !== 'production') return;
569570
await addTickerRegisterListener(networkId);
570571

571572
await addTokenCreateListener(networkId);

0 commit comments

Comments
 (0)