From 58b062921e02ca4160b1a90efa56e1c5c89ba8bb Mon Sep 17 00:00:00 2001 From: Simonas Karuzas Date: Mon, 25 May 2020 17:24:50 +0300 Subject: [PATCH] fix: Message handler chain --- examples/rest-api/setup.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/rest-api/setup.ts b/examples/rest-api/setup.ts index 21d04d918..2496f6f22 100644 --- a/examples/rest-api/setup.ts +++ b/examples/rest-api/setup.ts @@ -11,8 +11,7 @@ import Debug from 'debug' Debug.enable('*') const messageHandler = new DIDCommMessageHandler() -messageHandler.setNext(new JwtMessageHandler()) -messageHandler.setNext(new W3cMessageHandler()) +messageHandler.setNext(new JwtMessageHandler()).setNext(new W3cMessageHandler()) const actionHandler = new DIDCommActionHandler() actionHandler.setNext(new W3cActionHandler())