Skip to content

Commit

Permalink
Fixed eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
pkarw committed Jul 16, 2019
1 parent 1991d0f commit d1532f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/product.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion src/api/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d1532f7

Please sign in to comment.