From 1a35f9b2530cb962f19ba212880872ceadf36f3f Mon Sep 17 00:00:00 2001 From: pkarw Date: Tue, 16 Jul 2019 12:46:59 +0200 Subject: [PATCH] merge d1532f7eeac229da9e00733d0c9bc7f307fdbc12 --- src/api/product.js | 2 +- src/api/user.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/product.js b/src/api/product.js index 75dad045..e9acf38d 100755 --- a/src/api/product.js +++ b/src/api/product.js @@ -1,4 +1,4 @@ -import { apiStatus, sgnSrc } from '../lib/util'; +import { apiStatus, sgnSrc, apiError } from '../lib/util'; import { Router } from 'express'; import PlatformFactory from '../platform/factory'; diff --git a/src/api/user.js b/src/api/user.js index 5188ea24..af4b181a 100755 --- a/src/api/user.js +++ b/src/api/user.js @@ -76,7 +76,7 @@ export default ({config, db}) => { apiError(res, err); }) } else { - apiStatus(res, result, 200, {refreshToken: encryptToken(jwt.encode(req.body, config.authHashSecret ? config.authHashSecret : config.objHashSecret), config.authHashSecret ? config.authHashSecret : config.objHashSecret)}); + apiStatus(res, result, 200, {refreshToken: encryptToken(jwt.encode(req.body, config.authHashSecret ? config.authHashSecret : config.objHashSecret), config.authHashSecret ? config.authHashSecret : config.objHashSecret)}); } }).catch(err => { apiError(res, err);