mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Linting fixes
This commit is contained in:
parent
565da42b46
commit
1525742b4e
1 changed files with 7 additions and 3 deletions
|
|
@ -1,5 +1,9 @@
|
|||
import { generateSlug, stringToHash, validatedDate } from '../utils/helpers'
|
||||
import { FAKE_URL_PREFIX, parsePreparedContent, parseUrlMetadata } from '../utils/parser'
|
||||
import {
|
||||
FAKE_URL_PREFIX,
|
||||
parsePreparedContent,
|
||||
parseUrlMetadata,
|
||||
} from '../utils/parser'
|
||||
import normalizeUrl from 'normalize-url'
|
||||
import { PubsubClient } from '../datalayer/pubsub'
|
||||
import { ArticleSavingRequestStatus, Page } from '../elastic/types'
|
||||
|
|
@ -21,7 +25,7 @@ export type SaveEmailInput = {
|
|||
unsubHttpUrl?: string
|
||||
}
|
||||
|
||||
const isStubUrl = (url: string): Boolean => {
|
||||
const isStubUrl = (url: string): boolean => {
|
||||
return url.startsWith(FAKE_URL_PREFIX)
|
||||
}
|
||||
|
||||
|
|
@ -42,7 +46,7 @@ export const saveEmail = async (
|
|||
)
|
||||
const content = parseResult.parsedContent?.content || input.originalContent
|
||||
const slug = generateSlug(input.title)
|
||||
const metadata = isStubUrl(url) ? undefined : (await parseUrlMetadata(url))
|
||||
const metadata = isStubUrl(url) ? undefined : await parseUrlMetadata(url)
|
||||
|
||||
const articleToSave: Page = {
|
||||
id: '',
|
||||
|
|
|
|||
Loading…
Reference in a new issue