Skip to content

Commit c97f17d

Browse files
Fix missing await
1 parent bf2d2e0 commit c97f17d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ router.get('/', (req, res) => {
2222
res.send("HackOSS API at your service. Don't get any funny ideas.");
2323
});
2424

25-
router.post('/publish', (req, res) => {
25+
router.post('/publish', async (req, res) => {
2626
const eventId: string = req.body.eventId;
2727
const platforms: Platform[] = req.body.platforms;
28-
res.send(publishService.publish(eventId, platforms));
28+
res.send(await publishService.publish(eventId, platforms));
2929
});
3030

3131
app.use('/api', router);

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"compilerOptions": {
33
"target": "es5",
44
"module": "commonjs",
5+
"lib": ["es2015", "es2016", "es2017", "es2018", "dom"],
56
"moduleResolution": "node",
67
"noImplicitReturns": true,
78
"outDir": "dist/",

0 commit comments

Comments
 (0)