Skip to content

Commit 2d00158

Browse files
authored
fix: messagebus env variables get (#252)
1 parent ace08ea commit 2d00158

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/messageBusService.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import type { Publisher } from "rabbitmq-client";
22
import { Connection } from "rabbitmq-client";
33
import { MZingaLogger } from "./utils/MZingaLogger";
4-
54
const {
65
TENANT = "unknown",
76
ENV = "local",
87
RABBITMQ_VHOST = "/",
98
RABBITMQ_ACQUIRE_TIMEOUT = "",
109
RABBITMQ_CONNECTION_TIMEOUT = "",
11-
} = process.env;
10+
} = (process || {}).env || {};
1211
declare type Event = {
1312
type: string;
1413
data: any;

0 commit comments

Comments
 (0)