Skip to content

Commit 0934310

Browse files
committed
await the setup of the intra api in back-end server
1 parent 51c55ec commit 0934310

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/routes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ const cache = new NodeCache({ stdTTL: cacheTTL });
1414

1515
const FOUND_HOSTS: string[] = [];
1616

17-
export default (app: Express) => {
17+
export default async (app: Express) => {
1818
// Initialize
19-
setUpIntraAPI();
19+
await setUpIntraAPI();
2020

2121
// Define routes
2222
app.get('/', (req, res) => {

0 commit comments

Comments
 (0)