mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
Refactor seed script for improved readability by adjusting import formatting and removing unnecessary whitespace.
Some checks failed
DB migration compat / Check if migrations changed (push) Has been cancelled
DB migration compat / Back-compat — Current branch migrations with ${{ needs.check-migrations-changed.outputs.base_branch }} branch code (push) Has been cancelled
DB migration compat / Forward-compat — Current branch code with ${{ needs.check-migrations-changed.outputs.base_branch }} branch migrations (push) Has been cancelled
DB migration compat / No migration changes (skipped) (push) Has been cancelled
Some checks failed
DB migration compat / Check if migrations changed (push) Has been cancelled
DB migration compat / Back-compat — Current branch migrations with ${{ needs.check-migrations-changed.outputs.base_branch }} branch code (push) Has been cancelled
DB migration compat / Forward-compat — Current branch code with ${{ needs.check-migrations-changed.outputs.base_branch }} branch migrations (push) Has been cancelled
DB migration compat / No migration changes (skipped) (push) Has been cancelled
This commit is contained in:
parent
651193cdbf
commit
8aaa54fa1a
@ -3,11 +3,11 @@ import { usersCrudHandlers } from '@/app/api/latest/users/crud';
|
||||
import { CustomerType, Prisma, PurchaseCreationSource, SubscriptionStatus } from '@/generated/prisma/client';
|
||||
import { overrideBranchConfigOverride } from '@/lib/config';
|
||||
import {
|
||||
LOCAL_EMULATOR_ADMIN_EMAIL,
|
||||
LOCAL_EMULATOR_ADMIN_PASSWORD,
|
||||
LOCAL_EMULATOR_ADMIN_USER_ID,
|
||||
LOCAL_EMULATOR_OWNER_TEAM_ID,
|
||||
isLocalEmulatorEnabled,
|
||||
LOCAL_EMULATOR_ADMIN_EMAIL,
|
||||
LOCAL_EMULATOR_ADMIN_PASSWORD,
|
||||
LOCAL_EMULATOR_ADMIN_USER_ID,
|
||||
LOCAL_EMULATOR_OWNER_TEAM_ID,
|
||||
isLocalEmulatorEnabled,
|
||||
} from '@/lib/local-emulator';
|
||||
import { ensurePermissionDefinition, grantTeamPermission } from '@/lib/permissions';
|
||||
import { createOrUpdateProjectWithLegacyConfig, getProject } from '@/lib/projects';
|
||||
@ -538,7 +538,6 @@ export async function seed() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Create or ensure TeamMember exists before granting permissions.
|
||||
// Using upsert here (instead of create inside the else block above) ensures
|
||||
// idempotency when adminInternalAccess changes between seed runs.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user