Skip to content

Commit

Permalink
fix: adminController might not be initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
fredriklindberg committed May 18, 2021
1 parent ca8d708 commit 35774a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default async () => {
await endpoint.destroy();
await ingress.destroy();
await apiController.destroy();
await adminController.destroy();
adminController && await adminController.destroy();
Logger.info(`Shutdown complete`)
process.exit(0);
};
Expand Down

0 comments on commit 35774a0

Please sign in to comment.