Skip to content

Commit

Permalink
fix: Added await to the load in the server
Browse files Browse the repository at this point in the history
  • Loading branch information
kammerjaeger committed Apr 27, 2021
1 parent 72b0531 commit 8175c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ export async function run(
if (Array.isArray(pkg.apps)) {
for (const appPath of pkg.apps) {
const appFn = await resolveAppFunction(appPath);
server.load(appFn);
await server.load(appFn);
}
}

const [appPath] = args;
const appFn = await resolveAppFunction(appPath);
server.load(appFn);
await server.load(appFn);
};

server = new Server(serverOptions);
Expand Down

0 comments on commit 8175c96

Please sign in to comment.