Skip to content

Commit

Permalink
fix(server): remove unused admin environment (#8378)
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo committed Sep 25, 2024
1 parent 2df2003 commit cb40205
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/deployment/self-host/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
//
}
}

0 comments on commit cb40205

Please sign in to comment.