Skip to content

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
p4p1 committed Mar 1, 2021
1 parent 3963e4a commit 899456e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions app/screens/NotificationScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export default class HomeScreen extends React.Component
'authorization': `Bearer ${this.props.token}`
}
}).then((response) => response.json()).then((json) => {
console.log(json);
this.setState({modal: !this.state.modal});
this.setState({selected: json[0]});
}).catch((err) => {
Expand Down
14 changes: 7 additions & 7 deletions backend/routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ router.get('/:id', function (req, res) {
date: new Date(),
link: req.url,
userAgent: req.headers['user-agent'],
body: req.body,
body: `${req.body}`,
header: req.headers,
ipAddress: req.ip
}, function(err) {
Expand Down Expand Up @@ -80,7 +80,7 @@ router.post('/:id', function (req, res) {
date: new Date(),
link: req.url,
userAgent: req.headers['user-agent'],
body: req.body,
body: `${req.body}`,
header: req.headers,
ipAddress: req.ip
}, function(err) {
Expand Down Expand Up @@ -109,7 +109,7 @@ router.put('/:id', function (req, res) {
date: new Date(),
link: req.url,
userAgent: req.headers['user-agent'],
body: req.body,
body: `${req.body}`,
header: req.headers,
ipAddress: req.ip
}, function(err) {
Expand Down Expand Up @@ -138,7 +138,7 @@ router.delete('/:id', function (req, res) {
date: new Date(),
link: req.url,
userAgent: req.headers['user-agent'],
body: req.body,
body: `${req.body}`,
header: req.headers,
ipAddress: req.ip
}, function(err) {
Expand Down Expand Up @@ -167,7 +167,7 @@ router.patch('/:id', function (req, res) {
date: new Date(),
link: req.url,
userAgent: req.headers['user-agent'],
body: req.body,
body: `${req.body}`,
header: req.headers,
ipAddress: req.ip
}, function(err) {
Expand Down Expand Up @@ -196,7 +196,7 @@ router.get('/:id/code', function (req, res) {
date: new Date(),
link: req.url,
userAgent: req.headers['user-agent'],
body: req.body,
body: `${req.body}`,
header: req.headers,
ipAddress: req.ip
}, function(err) {
Expand Down Expand Up @@ -225,7 +225,7 @@ router.get('/:id/pic', function (req, res) {
date: new Date(),
link: req.url,
userAgent: req.headers['user-agent'],
body: req.body,
body: `${req.body}`,
header: req.headers,
ipAddress: req.ip
}, function(err) {
Expand Down

0 comments on commit 899456e

Please sign in to comment.