Skip to content

Commit

Permalink
refactored server
Browse files Browse the repository at this point in the history
  • Loading branch information
bat-kryptonyte committed Aug 27, 2023
1 parent f267298 commit e8ff88d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/server/mongodb/models/numerical_problem.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { m } from "framer-motion";
import mongoose from "mongoose";

const numericalProblemSchema = new mongoose.Schema({
Expand Down Expand Up @@ -61,7 +60,7 @@ export const physicsImgModel =
);

export const mathProofsModel =
mongoose.models.mathProofsProblem ||
mongoose.models.mathProofsModel ||
mongoose.model("mathProofsProblem", numericalProblemSchema, "mathProofs");

export const mathSymbolicModel =
Expand All @@ -74,4 +73,4 @@ export const physicsTestModel =

export const physicsTestImgModel =
mongoose.models.physicsTestImgProblem ||
mongoose.model("physicsTestImgModel", numericalProblemSchema, "physics_test_img");
mongoose.model("physicsTestImgProblem", numericalProblemSchema, "physics_test_img");

0 comments on commit e8ff88d

Please sign in to comment.