mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add block around var definition
This commit is contained in:
parent
e85bb9aa6a
commit
500ec889c8
1 changed files with 2 additions and 1 deletions
|
|
@ -54,12 +54,13 @@ export const optInFeature = async (
|
|||
)
|
||||
case FeatureName.Notion:
|
||||
return optInLimitedFeature(FeatureName.Notion, uid, MAX_NOTION_USERS)
|
||||
case FeatureName.AIDigest:
|
||||
case FeatureName.AIDigest: {
|
||||
const eligible = await userDigestEligible(uid)
|
||||
if (!eligible) {
|
||||
return OptInFeatureErrorCode.Ineligible
|
||||
}
|
||||
return optInLimitedFeature(FeatureName.AIDigest, uid, MAX_AIDIGEST_USERS)
|
||||
}
|
||||
default:
|
||||
return OptInFeatureErrorCode.NotFound
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue