Skip to content

Commit

Permalink
changed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-abin committed Mar 12, 2024
1 parent 8952481 commit 71a1691
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions admin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const start = async () => {
if (!process.env.MONGO_URL_ADMIN) {
throw new Error("MONGO_URL_ADMIN must be defined");
}


// to connect to mongodb
await connectDB();
Expand Down
1 change: 1 addition & 0 deletions auth/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const start = async () => {

// to connect to mongodb
await connectDB();


// it is used to listen to incomming message from kafka topics
const userUpdatedEvent = new UserUpdatedEventConsumer(kafkaClient)
Expand Down
1 change: 1 addition & 0 deletions chat/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const start = async () => {
console.log("after socket instance");

await connectDB();


const userCreatedEvent = new UserCreatedEventConsumer(kafkaClient);
const userUpdatedEvent = new UserUpdatedEventConsumer(kafkaClient);
Expand Down
1 change: 0 additions & 1 deletion client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export default function App() {
// requestPermission();
// }, []);


return (
<>
<ToastContainer className="mt-10" />
Expand Down
1 change: 1 addition & 0 deletions client/src/routes/AdminRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const PremiumMembershipPage = lazy(
() => import("../pages/payment/PremiumMembershipPage")
);


function AdminRoutes() {
const isAdminLoggedIn = useSelector(
(state: RootState) => state.adminData.data
Expand Down
1 change: 1 addition & 0 deletions job/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const start = async () => {
// to connect to mongodb
await connectDB();


// it is used to listen to incomming message from kafka topics
const userCreatedEvent = new UserCreatedEventConsumer(kafkaClient);
const userUpdatedEvent = new UserUpdatedEventConsumer(kafkaClient);
Expand Down
1 change: 1 addition & 0 deletions payment/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const start = async () => {
// to connect to mongodb
await connectDB();


app.listen(3000, () => {
console.log("payment Listening on port 3000....");
})
Expand Down
2 changes: 1 addition & 1 deletion profile/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const start = async () => {

// to connect to mongodb
await connectDB();

// it is used to listen to incomming message from kafka topics
const userCreatedEvent = new UserCreatedEventConsumer(kafkaClient);
const userUpdatedEvent = new UserUpdatedEventConsumer(kafkaClient);
Expand Down

0 comments on commit 71a1691

Please sign in to comment.