Skip to content

Commit

Permalink
Merge pull request #4 from TheDuckAI/refactor-api
Browse files Browse the repository at this point in the history
changed field names
  • Loading branch information
bat-kryptonyte authored Sep 29, 2023
2 parents b90a7e0 + 205e521 commit 2096a02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/server/mongodb/actions/numericalProblem.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function getAllMathProblems() {
return await mathNumericalModel.find(
{},
{
"Problem Statement": 1,
"Problem_Statement": 1,
Solution: 1,
"Final Answer": 1,
}
Expand Down Expand Up @@ -75,7 +75,7 @@ async function getAllPhysicsProblems() {
return await physicsNumericalModel.find(
{},
{
"Problem Statement": 1,
"Problem_Statement": 1,
Solution: 1,
"Final Answer": 1,
}
Expand Down
2 changes: 1 addition & 1 deletion src/server/mongodb/models/numerical_problem.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const physicsImgModel =
);

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

export const mathSymbolicModel =
Expand Down

0 comments on commit 2096a02

Please sign in to comment.