Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: add field polyfill for old feature (#5586)

DarkSky2f9b4fd0cf16
diff --git a/packages/backend/server/src/modules/features/types/early-access.ts b/packages/backend/server/src/modules/features/types/early-access.ts
index abf3b238f5..f8624b065a 100644
--- a/packages/backend/server/src/modules/features/types/early-access.ts
+++ b/packages/backend/server/src/modules/features/types/early-access.ts
@@ -4,5 +4,8 @@ import { FeatureType } from './common';
export const featureEarlyAccess = z.object({
feature: z.literal(FeatureType.EarlyAccess),
- configs: z.object({}),
+ configs: z.object({
+ // field polyfill, make it optional in the future
+ whitelist: z.string().array(),
+ }),
});
diff --git a/packages/backend/server/src/modules/features/types/index.ts b/packages/backend/server/src/modules/features/types/index.ts
index 0f82a393aa..f732bce242 100644
--- a/packages/backend/server/src/modules/features/types/index.ts
+++ b/packages/backend/server/src/modules/features/types/index.ts
@@ -42,7 +42,9 @@ export const Features: Feature[] = [
feature: FeatureType.EarlyAccess,
type: FeatureKind.Feature,
version: 2,
- configs: {},
+ configs: {
+ whitelist: [],
+ },
},
{
feature: FeatureType.UnlimitedWorkspace,