Skip to content

Commit 69523c9

Browse files
author
Matt Mazzola
committed
Fix indentation of registering handler for dashboard events.
1 parent 196d83e commit 69523c9

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

‎src/service.ts‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,17 @@ export class Service implements IService {
146146

147147
this.handleEvent(event);
148148
});
149-
this.router.post(`/dashboards/:uniqueId/events/:eventName`, (req, res) => {
150-
const event: IEvent<any> = {
151-
type: 'dashboard',
152-
id: req.params.uniqueId,
153-
name: req.params.eventName,
154-
value: req.body
155-
};
156-
157-
this.handleEvent(event);
158-
});
149+
150+
this.router.post(`/dashboards/:uniqueId/events/:eventName`, (req, res) => {
151+
const event: IEvent<any> = {
152+
type: 'dashboard',
153+
id: req.params.uniqueId,
154+
name: req.params.eventName,
155+
value: req.body
156+
};
157+
158+
this.handleEvent(event);
159+
});
159160

160161
this.embeds = [];
161162

0 commit comments

Comments
 (0)