add notion to the features list

This commit is contained in:
Hongbo Wu
2024-03-26 12:32:01 +08:00
parent 1c85955d7a
commit 209b08e2ff

View File

@ -13,6 +13,7 @@ export enum FeatureName {
AISummaries = 'ai-summaries',
YouTubeTranscripts = 'youtube-transcripts',
UltraRealisticVoice = 'ultra-realistic-voice',
Notion = 'notion',
}
export const getFeatureName = (name: string): FeatureName | undefined => {
@ -36,8 +37,11 @@ export const optInFeature = async (
uid,
MAX_YOUTUBE_TRANSCRIPT_USERS
)
case FeatureName.Notion:
return optInLimitedFeature(FeatureName.Notion, uid, 1)
default:
return undefined
}
return undefined
}
const optInLimitedFeature = async (