Skip to content

Commit

Permalink
added starting msg in every service
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhravHussen committed Jul 25, 2023
1 parent c392fe5 commit 624be90
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions expiration/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { OrderCreatedListener } from "./events/listeners/order-created-listener"

//mongodb
const start = async () => {
console.log("Starting up expiration service...");

try {
if (!process.env.NATS_CLIENT_ID) {
throw new HttpException(500, "NATS_CLIENT_ID must be defined");
Expand Down
2 changes: 2 additions & 0 deletions orders/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { PaymentsSuccessListener } from "./events/listeners/payment-success-list

//mongodb
const start = async () => {
console.log("Starting up orders service...");

try {
if (!process.env.JWT_SECRET || !process.env.MONGO_URI) {
throw new HttpException(500, "env must be defined");
Expand Down
1 change: 1 addition & 0 deletions payments/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { OrderCancelledListener } from "./events/listeners/order-cancelled-liste
import { OrderCreatedListener } from "./events/listeners/order-created-listener";

const start = async () => {
console.log("Starting up payments service...");
try {
if (!process.env.JWT_SECRET || !process.env.MONGO_URI) {
throw new HttpException(500, "env must be defined");
Expand Down
1 change: 1 addition & 0 deletions tickets/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { OrderCancelledListener } from "./events/listeners/order-cancelled-liste

//mongodb
const start = async () => {
console.log("Starting up tickets service...");
try {
if (!process.env.JWT_SECRET || !process.env.MONGO_URI) {
throw new HttpException(500, "env must be defined");
Expand Down

0 comments on commit 624be90

Please sign in to comment.