Skip to content

Commit c165a08

Browse files
committed
some adjusts
1 parent 9dab4cf commit c165a08

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

components/highergov/sources/new-pursuit-added-instant/new-pursuit-added-instant.mjs

+1-11
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,13 @@ export default {
1616
},
1717
db: "$.service.db",
1818
},
19-
methods: {
20-
emitEvent(event) {
21-
this.$emit(event, {
22-
id: event.opp_key,
23-
summary: `New pursuit added: ${event.title}`,
24-
ts: Date.parse(event.current_datetime),
25-
});
26-
},
27-
},
2819
hooks: {
2920
async activate() {
30-
const hookId = await this.highergov.subscribeWebhook({
21+
await this.highergov.subscribeWebhook({
3122
data: {
3223
target_url: this.http.endpoint,
3324
},
3425
});
35-
console.log("hookId: ", hookId);
3626
},
3727
async deactivate() {
3828
await this.highergov.unsubscribeWebhook();

0 commit comments

Comments
 (0)