Skip to content

Commit

Permalink
fix: set app key where load user code (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
echosoar committed Jul 22, 2020
1 parent f89134c commit 1c5aa44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/faas/src/starter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ export class FaaSStarter implements IFaaSStarter {
this.addConfiguration('./configuration', __dirname, MIDWAY_FAAS_KEY);
this.prepareConfiguration();

// set app keys
this.webApplication['keys'] = this.webApplication.getConfig('keys') || '';

this.loader.loadDirectory(opts);
this.registerDecorator();
await this.loader.refresh();

// set app keys
this.webApplication['keys'] = this.webApplication.getConfig('keys') || '';

// store all function entry
const funModules = listModule(FUNC_KEY);
for (const funModule of funModules) {
Expand Down

0 comments on commit 1c5aa44

Please sign in to comment.