This commit is contained in:
smart_ex 2022-06-22 20:13:05 +10:00
parent eef6bb2581
commit 362605702e
2 changed files with 2 additions and 2 deletions

@ -14,7 +14,7 @@ export const privateKey = process.env.PRIVATE_KEY;
export const instances = tornConfig.instances; export const instances = tornConfig.instances;
export const torn = tornConfig; export const torn = tornConfig;
export const port = process.env.APP_PORT || 8000; export const port = process.env.APP_PORT || 8000;
export const host = process.env.VIRTUAL_HOST || `localhost:${port}`; export const host = process.env.NODE_ENV === 'production' ? 'https://' + process.env.VIRTUAL_HOST : `http://localhost:${port}`;
export const tornadoServiceFee = Number(process.env.REGULAR_TORNADO_WITHDRAW_FEE); export const tornadoServiceFee = Number(process.env.REGULAR_TORNADO_WITHDRAW_FEE);
export const rewardAccount = process.env.REWARD_ACCOUNT; export const rewardAccount = process.env.REWARD_ACCOUNT;
export const governanceAddress = '0x5efda50f22d34F262c29268506C5Fa42cB56A1Ce'; export const governanceAddress = '0x5efda50f22d34F262c29268506C5Fa42cB56A1Ce';

@ -76,7 +76,7 @@ export class HealthService {
await this.store.client.zadd('errors:log', 'INCR', 1, e.message); await this.store.client.zadd('errors:log', 'INCR', 1, e.message);
if (e?.code === 'REVERTED') { if (e?.code === 'REVERTED') {
const jobUrl = `https://${this.config.host}/v1/jobs/${jobId}`; const jobUrl = `${this.config.host}/v1/jobs/${jobId}`;
await this.pushAlert({ await this.pushAlert({
message: `${e.message} \n ${jobUrl}`, message: `${e.message} \n ${jobUrl}`,
type: 'REVERTED', type: 'REVERTED',