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(server): remove unused admin environment (#8378)

forehalocb4020569cee
diff --git a/.github/deployment/self-host/compose.yaml b/.github/deployment/self-host/compose.yaml
index 9cdac96be8..cbc1d4b0b2 100644
--- a/.github/deployment/self-host/compose.yaml
+++ b/.github/deployment/self-host/compose.yaml
@@ -28,8 +28,6 @@ services:
- REDIS_SERVER_HOST=redis
- DATABASE_URL=postgres://affine:affine@postgres:5432/affine
- NODE_ENV=production
- - AFFINE_ADMIN_EMAIL=${AFFINE_ADMIN_EMAIL}
- - AFFINE_ADMIN_PASSWORD=${AFFINE_ADMIN_PASSWORD}
# Telemetry allows us to collect data on how you use the affine. This data will helps us improve the app and provide better features.
# Uncomment next line if you wish to quit telemetry.
# - TELEMETRY_ENABLE=false
diff --git a/packages/backend/server/src/data/migrations/99999-self-host-admin.ts b/packages/backend/server/src/data/migrations/99999-self-host-admin.ts
index 327772af58..32cb389798 100644
--- a/packages/backend/server/src/data/migrations/99999-self-host-admin.ts
+++ b/packages/backend/server/src/data/migrations/99999-self-host-admin.ts
@@ -23,11 +23,7 @@ export class SelfHostAdmin1 {
}
// revert the migration
- static async down(db: PrismaClient) {
- await db.user.deleteMany({
- where: {
- email: process.env.AFFINE_ADMIN_EMAIL ?? '[email protected]',
- },
- });
+ static async down() {
+ //
}
}