Add PocketIntegration service to the list

This commit is contained in:
Hongbo Wu
2023-02-16 16:33:58 +08:00
parent c3bfb593c6
commit 9c7f6fefca

View File

@ -1,7 +1,11 @@
import { ReadwiseIntegration } from './readwise'
import { IntegrationService } from './integration'
import { PocketIntegration } from './pocket'
const integrations: IntegrationService[] = [new ReadwiseIntegration()]
const integrations: IntegrationService[] = [
new ReadwiseIntegration(),
new PocketIntegration(),
]
export const getIntegrationService = (name: string): IntegrationService => {
const service = integrations.find((s) => s.name === name)