This repository was archived by the owner on Sep 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11MONGO_URL = ' mongodb+srv://shiroshinomiya3013:maricar3013@cluster0.lzfzy.mongodb.net/adminis?retryWrites=true&w=majority&appName=Cluster0'
22CLIENT_URL = https://admin.axleshift.com
33DEV_URL = http://localhost:3000
4- PORT = 5053
4+ PORT = 5000
55JWT_REFRESH_SECRET = Refresh
66SESSION_SECRET = 123abc
77JWT_SECRET_KEY = shesh
Original file line number Diff line number Diff line change 11import SecurityAlert from "../model/SecurityAlert.js" ;
22import LoginAttempt from "../model/LoginAttempt.js" ;
3- import User from "../model/user .js" ;
3+ import User from "../model/User .js" ;
44
55export const logLoginAttempt = async ( attemptData ) => {
66 try {
Original file line number Diff line number Diff line change 11import mongoose from "mongoose" ;
2- import Agreement from "../model/agreement .js" ;
2+ import Agreement from "../model/Agreement .js" ;
33import User from "../model/User.js" ;
44import jwt from "jsonwebtoken" ;
55
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ if (fs.existsSync(clientBuildPath)) {
129129}
130130
131131// ✅ 10. Connect to MongoDB and start the server
132- const PORT = process . env . PORT || 9000 ;
132+ const PORT = process . env . PORT ;
133133
134134mongoose
135135 . connect ( process . env . MONGO_URL )
Original file line number Diff line number Diff line change 1- import Agreement from "../model/agreement .js" ;
1+ import Agreement from "../model/Agreement .js" ;
22import User from "../model/User.js" ;
33import jwt from "jsonwebtoken" ;
44import nodemailer from "nodemailer" ;
You can’t perform that action at this time.
0 commit comments