make library an internal label

This commit is contained in:
Hongbo Wu
2023-07-17 18:29:35 +08:00
parent 65df023dd6
commit 456a73f4ab

View File

@ -9,7 +9,12 @@ import { getRepository } from '../entity/utils'
import { CreateLabelInput } from '../generated/graphql'
import { generateRandomColor } from '../utils/helpers'
const INTERNAL_LABELS_IN_LOWERCASE = ['newsletters', 'favorites', 'rss']
const INTERNAL_LABELS_IN_LOWERCASE = [
'newsletters',
'favorites',
'rss',
'library',
]
const isLabelInternal = (name: string): boolean => {
return INTERNAL_LABELS_IN_LOWERCASE.includes(name.toLowerCase())