mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix invalid unknown item type
This commit is contained in:
parent
0a4758105a
commit
db28bbd0f9
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
|||
import express from 'express'
|
||||
import {
|
||||
ArticleSavingRequestStatus,
|
||||
PageType,
|
||||
PreparedDocumentInput,
|
||||
} from '../../generated/graphql'
|
||||
import { createAndSaveLabelsInLibraryItem } from '../../services/labels'
|
||||
|
|
@ -114,7 +115,7 @@ export function followingServiceRouter() {
|
|||
slug,
|
||||
croppedPathname,
|
||||
originalHtml: req.body.previewContent,
|
||||
itemType: parsedResult?.pageType || 'unknown',
|
||||
itemType: parsedResult?.pageType || PageType.Unknown,
|
||||
canonicalUrl: url,
|
||||
folder: FOLDER,
|
||||
rssFeedUrl: feedUrl,
|
||||
|
|
|
|||
Loading…
Reference in a new issue