Toggle navigation
Toggle navigation
This project
Loading...
Sign in
황선혁
/
weather_chatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Eric Whale
2022-05-29 18:22:54 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
51b508d00718c9430d906c57f21c064b502124f9
51b508d0
1 parent
fa1d5d96
Reset DB by connection issue
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletions
actions/userActions.js
client/package.json
config/db.js
actions/userActions.js
View file @
51b508d
...
...
@@ -73,7 +73,6 @@ const loginUser = asyncHandler(async (req, res) => {
// @route GET /api/users/self
// @access Private
const
getSelf
=
asyncHandler
(
async
(
req
,
res
)
=>
{
// TODO
res
.
status
(
200
).
json
(
req
.
user
);
});
...
...
client/package.json
View file @
51b508d
{
"name"
:
"client"
,
"version"
:
"0.1.0"
,
"proxy"
:
"http://localhost:6000"
,
"private"
:
true
,
"dependencies"
:
{
"@testing-library/jest-dom"
:
"^5.16.4"
,
...
...
config/db.js
View file @
51b508d
...
...
@@ -6,6 +6,9 @@ const connectDB = async () => {
const
conn
=
await
mongoose
.
connect
(
process
.
env
.
MONGO_URI
);
console
.
log
(
`MongoDB Connected:
${
conn
.
connection
.
host
}
`
.
cyan
.
underline
);
}
catch
(
error
)
{
console
.
log
(
`Error occured while connecting to the mongoDB`
.
magenta
.
underline
);
console
.
log
(
error
);
process
.
exit
(
1
);
}
...
...
Please
register
or
login
to post a comment