From 8e0bc8eb98343b69890810194f65fca6a51a4a27 Mon Sep 17 00:00:00 2001 From: cdeng65 Date: Tue, 25 Jul 2023 22:01:47 -0400 Subject: [PATCH] added docs --- src/screens/ARB/Arb.tsx | 28 ++++++++++++++++--- .../mongodb/actions/numericalProblem.js | 6 ++-- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/src/screens/ARB/Arb.tsx b/src/screens/ARB/Arb.tsx index 9564601..c3d44fb 100644 --- a/src/screens/ARB/Arb.tsx +++ b/src/screens/ARB/Arb.tsx @@ -16,6 +16,7 @@ import { FaArrowCircleRight, FaFilePdf, FaGithub, + FaBook, FaImages, } from "react-icons/fa"; import { AiFillFile } from "react-icons/ai"; @@ -143,11 +144,12 @@ const Arb: React.FC = () => { - + + + + diff --git a/src/server/mongodb/actions/numericalProblem.js b/src/server/mongodb/actions/numericalProblem.js index 45e51e7..5f23101 100644 --- a/src/server/mongodb/actions/numericalProblem.js +++ b/src/server/mongodb/actions/numericalProblem.js @@ -70,7 +70,7 @@ async function getAllPhysicsImgProblems() { async function findMathProblemById(id) { return findOneByMongoId(mathNumericalModel, id, { - "Problem Statement": 1, + Problem_Statement: 1, Solution: 1, "Final Answer": 1, }); @@ -78,7 +78,7 @@ async function findMathProblemById(id) { async function findPhysicsProblemById(id) { return findOneByMongoId(physicsNumericalModel, id, { - "Problem Statement": 1, + Problem_Statement: 1, Solution: 1, "Final Answer": 1, }); @@ -86,7 +86,7 @@ async function findPhysicsProblemById(id) { async function findPhysicsImgProblemById(id) { return findOneByMongoId(physicsImgModel, id, { - "Problem Statement": 1, + Problem_Statement: 1, Images: 1, Solution: 1, "Final Answer": 1,