Skip to content

Commit

Permalink
fix(com-api): build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed May 1, 2023
1 parent 8e71f57 commit 0fd8e35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions uniquely/com-api/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {logger} from './lib/config.js';
import './route/get-order-list.js';
import './route/get-price-list.js';
import './route/get-product-list.js';
import './route/home.js';
import './route/patch-price-list.js';
import './route/patch-product-list.js';
Expand Down
2 changes: 1 addition & 1 deletion uniquely/com-api/src/route/patch-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ nanoServer.route('PATCH', '/user-list/', async (connection) => {
});

const saveSeparateUserProfile = (user: ComUser): void => {
const token = userFactory.generateToken([user.id, user.lpe]);
const path = `${config.publicStoragePath}/user/${simpleHashNumber(user.phoneNumber)}-${token}.json`;

if (existsSync(path)) {
Expand All @@ -59,7 +60,6 @@ const saveSeparateUserProfile = (user: ComUser): void => {
}
}

const token = userFactory.generateToken([user.id, user.lpe]);
const content: AlwatrServiceResponseSuccess<ComUser> = {
ok: true,
statusCode: 200,
Expand Down

0 comments on commit 0fd8e35

Please sign in to comment.