Skip to content

Commit

Permalink
Added await to the load
Browse files Browse the repository at this point in the history
  • Loading branch information
kammerjaeger committed Apr 27, 2021
1 parent 53d6a6c commit 926de6d
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 926de6d

Please sign in to comment.