Skip to content

Commit b72996b

Browse files
committed
was printing branch inactive/no branch matched even when job created successfully
We were expecting a true result from sendJob to determine if the job was created successfully. However sendJob was only emitting a job.prepare message and not returning anything.
1 parent 7e8ba01 commit b72996b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/webhooks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,6 @@ function receiveWebhook(emitter, req, res) {
109109

110110
function sendJob(job) {
111111
emitter.emit('job.prepare', job);
112+
return true;
112113
}
113114
}

0 commit comments

Comments
 (0)