Skip to content

Commit

Permalink
Rename files and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
zzthian committed Nov 8, 2023
1 parent 3e01733 commit 2650913
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Import the Question model from its file path
const Question = require("../model/QuestionHistory");
const Question = require("../model/QuestionHistory.js");
const jwt = require("jsonwebtoken");

const SECRET_KEY = "yourSecretKey"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Import the Question model from its file path
const Question = require("../model/QuestionHistory");
const Question = require("../model/QuestionHistory.js");

// Define the getQuestions function
const deleteUserFromDatabase = async (req, res) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Import the Question model from its file path
const Question = require("../model/QuestionHistory");
const Question = require("../model/QuestionHistory.js");

// Define the getQuestions function
const getQuestionsHistory = async (req, res) => {
Expand Down
2 changes: 1 addition & 1 deletion backend/question-history-backend/routes/historyRouter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const express = require("express");
const router = express.Router();
const dotenv = require("dotenv")
const { getQuestionsHistory } = require("../controller/getUserQuestionHistory")
const { getQuestionsHistory } = require("../controller/getUserQuestionHistory.js")
const { deleteUserFromDatabase } = require("../controller/deleteUserFromDatabase.js")
const { createAddEntryEvent } = require("../controller/createAddEntryEvent.js")

Expand Down

0 comments on commit 2650913

Please sign in to comment.