Skip to content

Commit

Permalink
Merge pull request #402 from Mongopark/fix/index-file
Browse files Browse the repository at this point in the history
fix: auth token timer
  • Loading branch information
incredible-phoenix246 authored Jul 31, 2024
2 parents 4c2ac08 + 953e894 commit e19e230
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,13 @@ AppDataSource.initialize()
.then(async () => {
// await seed();
server.use(express.json());
// server.get("/", (req: Request, res: Response) => {
// // res.send("Hello world");
// res.send("Hello world");
// });
server.get("/", (req: Request, res: Response) => {
res.send("Hello world");
// res.send("Hello world");
res.send({ message: "I am the express API responding for team panther" });
});

server.get("/probe", (req: Request, res: Response) => {
Expand Down
2 changes: 1 addition & 1 deletion src/services/auth.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class AuthService implements IAuthService {
user.email = email;
user.password = hashedPassword;
user.profile = new Profile();
user.profile.first_name = last_name;
user.profile.first_name = first_name;
user.profile.last_name = last_name;
user.profile.avatarUrl = "";
user.otp = parseInt(otp);
Expand Down

0 comments on commit e19e230

Please sign in to comment.