Skip to content

Commit 01f01b4

Browse files
committed
quick cleanup
1 parent db9418c commit 01f01b4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/controllers/profile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const updateProfileInDB = async (req, id) => {
3535
})
3636
}
3737

38-
const getProfileFromDB = async (id) => {
38+
const getProfileFromDB = async id => {
3939
return new Promise((resolve, reject) => {
4040
model.findById(id, '-role -_id -updatedAt -createdAt', (err, user) => {
4141
if (err) {

config/passport.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {
55
} = require('../app/controllers/base')
66
const JwtStrategy = require('passport-jwt').Strategy
77

8-
const jwtExtractor = (req) => {
8+
const jwtExtractor = req => {
99
let token = null
1010
if (req.headers.authorization) {
1111
token = req.headers.authorization.replace('Bearer ', '').replace(' ', '')

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-express-mongodb-jwt-rest-api-skeleton",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"description": "Node.js express.js MongoDB JWT REST API - Basic Project Skeleton",
55
"license": "MIT",
66
"repository": {

0 commit comments

Comments
 (0)