fix(server): remove unused admin environment (#8378)

fix CLOUD-70
This commit is contained in:
forehalo
2024-09-25 02:45:28 +00:00
parent 2df2003bd7
commit cb4020569c
2 changed files with 2 additions and 8 deletions

View File

@@ -28,8 +28,6 @@ services:
- REDIS_SERVER_HOST=redis - REDIS_SERVER_HOST=redis
- DATABASE_URL=postgres://affine:affine@postgres:5432/affine - DATABASE_URL=postgres://affine:affine@postgres:5432/affine
- NODE_ENV=production - 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. # 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. # Uncomment next line if you wish to quit telemetry.
# - TELEMETRY_ENABLE=false # - TELEMETRY_ENABLE=false

View File

@@ -23,11 +23,7 @@ export class SelfHostAdmin1 {
} }
// revert the migration // revert the migration
static async down(db: PrismaClient) { static async down() {
await db.user.deleteMany({ //
where: {
email: process.env.AFFINE_ADMIN_EMAIL ?? 'admin@example.com',
},
});
} }
} }