Add message to handlers

This commit is contained in:
Jon Staab
2024-08-27 11:54:04 -07:00
parent fcbaa67ade
commit 8a8bea71be
13 changed files with 71 additions and 61 deletions
+3 -3
View File
@@ -83,11 +83,11 @@ export const publish = (request: PublishRequest) => {
// Delegate to our executor
const executorSub = executor.publish(event, {
verb: request.verb || "EVENT",
onOk: (url: string, eventId: string, ok: boolean) => {
onOk: (url: string, eventId: string, ok: boolean, message: string) => {
if (ok) {
pub.emitter.emit(PublishStatus.Success, url)
pub.emitter.emit(PublishStatus.Success, url, message)
} else {
pub.emitter.emit(PublishStatus.Failure, url)
pub.emitter.emit(PublishStatus.Failure, url, message)
}
},
onError: (url: string) => {