Skip to content

Commit

Permalink
production link with uploads working
Browse files Browse the repository at this point in the history
  • Loading branch information
Nawafds committed Nov 14, 2023
1 parent 022c463 commit 73258e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ const connectWithMongoDB = async (
// Build things you need inside to pass to context
const contextWrapper: ContextWrapperFunction = async () => {
// Context Metadata
const mongo_url = process.env.NAACP_MONGODB || "mongodb://mongo:[email protected]:8024"; // Local development

const mongo_url = process.env.NAACP_MONGODB || "mongodb://localhost:27017"; // Local development

// const mongo_url = process.env.NAACP_MONGODB || "mongodb://mongo:[email protected]:8024"; // Local development
// const mongo_url = process.env.NAACP_MONGODB;
const dbName = "se_naacp_db";
// const dbName = "se_naacp_gbh";

return { db: await connectWithMongoDB(mongo_url, dbName) };
};
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/DashboardPage/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export default function Dashboard() {

React.useEffect(() => {
queryArticleDataType("ARTICLE_DATA", {
dateFrom: 20220101,
dateTo: 20220201,
dateFrom: 20200101,
dateTo: 20240101,
area: "all",
userId: user?.sub,
});
Expand Down

0 comments on commit 73258e2

Please sign in to comment.