Skip to content

Commit 43fd1f5

Browse files
committed
Quick fix
1 parent 591983a commit 43fd1f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controllers/v4/internal/user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ const processUserAction = async (req, res, next) => {
185185
const processUserSessionAndUpdate = async (req, res, next) => {
186186
try {
187187
const { headers, body } = req;
188-
const { token, id, email, 'access-token': access_token } = body;
188+
const { token, id, email, access_token } = body;
189189
const { key } = headers;
190190

191191
// Validate access key
@@ -265,7 +265,7 @@ const getUser = async (req, res, next) => {
265265
return res.status(401).json({ message: 'Unauthorized' });
266266
}
267267

268-
const { id, email, 'access-token': access_token } = headers;
268+
const { id, email, access_token } = headers;
269269

270270
// Validate User ID
271271
if (!id) {

0 commit comments

Comments
 (0)