Skip to content

Commit

Permalink
Resolve service conversation listener on success
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhand committed Sep 27, 2024
1 parent 10db463 commit f58ba51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/webhooks/serviceConversationListener.protected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types';
import { responseWithCors, bindResolve, error500 } from '@tech-matters/serverless-helpers';
import { responseWithCors, bindResolve, error500, success } from '@tech-matters/serverless-helpers';
import {
Event,
SendErrorMessageForUnsupportedMedia,
Expand All @@ -38,5 +38,6 @@ export const handler = async (context: Context, event: Event, callback: Serverle
if (err instanceof Error) resolve(error500(err));
else resolve(error500(new Error(String(err))));
}
resolve(success(event));
}
};

0 comments on commit f58ba51

Please sign in to comment.