Commit 43b44d68669e7925fb1f9b98e7c1461c06f25d7d

Authored by Adhidarma Hadiwinoto
1 parent 1a044004fb
Exists in master

Perbaikan jika tidak ada config.sdk_supplier_product_quota

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

lib/control-panel/index.js
... ... @@ -15,7 +15,8 @@ const coreTerminalAuth = require('../core-terminal-auth');
15 15 const app = express();
16 16  
17 17 app.use(session({
18   - secret: config.sdk_supplier_product_quota.session_secret,
  18 + secret: (config.sdk_supplier_product_quota
  19 + && config.sdk_supplier_product_quota.session_secret) || uniqid(),
19 20 resave: true,
20 21 saveUninitialized: false,
21 22 }));