Skip to content

Commit

Permalink
adjustments in env vars
Browse files Browse the repository at this point in the history
Signed-off-by: Tanmay Vaij <tanmayvaij22@gmail.com>
  • Loading branch information
tanmayvaij committed Jul 3, 2024
1 parent 093ce77 commit e6a8fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { connect } from "mongoose";
export const connectToDatabase = async () => {
try {
await connect(
`${process.env.UAUTHX_PUBLIC_IP}:${process.env.MONGODB_EXPOSE_PORT}/${process.env.MONGODB_NAME}`
`mongodb://${process.env.UAUTHX_PUBLIC_IP}:${process.env.MONGODB_EXPOSE_PORT}/${process.env.MONGODB_NAME}`
);
console.log("connected to database successfully");
} catch (error) {
Expand Down

0 comments on commit e6a8fa8

Please sign in to comment.