Skip to content

Commit

Permalink
fix login
Browse files Browse the repository at this point in the history
  • Loading branch information
jipsonminibhavan committed Feb 6, 2024
1 parent 5c1ce16 commit 543d7e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/src/controller/accountController.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { Request, Response } from "express";
import { UserModel } from "../models/Users";
import jwt from "jwt-simple";
import { config } from "../config";
import config from "../config";
import mongoose from "mongoose";
import { Status } from "../models/Status";
import { API_VERSION } from "../config";

export default {
login: async (req: Request, res: Response) => {
Expand Down Expand Up @@ -61,7 +60,7 @@ export default {
res.json({
message: "Status retrieved successfully",
status: { db: dbStatus },
api_version: API_VERSION,
api_version: config.API_VERSION,
user: {
username,
id: _id,
Expand Down

0 comments on commit 543d7e9

Please sign in to comment.