From b03f7ebeb84aeef6a849724391c5730a9a042e09 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Thu, 15 Sep 2022 16:21:09 +0800 Subject: [PATCH] Add handler to pre-process morning brew newsletters --- packages/api/src/utils/parser.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/api/src/utils/parser.ts b/packages/api/src/utils/parser.ts index 8257adaf0..a1ec15678 100644 --- a/packages/api/src/utils/parser.ts +++ b/packages/api/src/utils/parser.ts @@ -20,6 +20,7 @@ import { User } from '../entity/user' import { ILike } from 'typeorm' import { v4 as uuid } from 'uuid' import addressparser from 'addressparser' +import { MorningBrewHandler } from './morning-brew-handler' const logger = buildLogger('utils.parse') @@ -57,6 +58,7 @@ const HANDLERS = [ new AxiosHandler(), new BloombergHandler(), new GolangHandler(), + new MorningBrewHandler(), ] /** Hook that prevents DOMPurify from removing youtube iframes */