mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 18:16:15 +08:00
refactor(server): config system (#11081)
This commit is contained in:
@@ -133,7 +133,7 @@ export class FeatureModel extends BaseModel {
|
||||
const name = key as FeatureName;
|
||||
const def = FeatureConfigs[name];
|
||||
// self-hosted instance will use pro plan as free plan
|
||||
if (name === 'free_plan_v1' && this.config.isSelfhosted) {
|
||||
if (name === 'free_plan_v1' && env.selfhosted) {
|
||||
await this.upsert(
|
||||
name,
|
||||
FeatureConfigs['pro_plan_v1'].configs,
|
||||
|
||||
Reference in New Issue
Block a user