feat: 完成模板目录导入与生命周期管理
This commit is contained in:
1 parent
553a07c4ec
commit
413413efda
25 files changed
+1313
-24
No files matched your search
@@ -852,11 +852,12 @@ async function main(): Promise<void> {
|
||||
}
|
||||
const admin = await prisma.adminUser.upsert({
|
||||
where: { username: "admin" },
|
||||
update: {},
|
||||
update: { platformTemplateRole: "template_admin" },
|
||||
create: {
|
||||
username: "admin",
|
||||
passwordHash: await bcrypt.hash(process.env.SEED_ADMIN_PASSWORD ?? "change-me-now-123", 12),
|
||||
displayName: "品牌管理员",
|
||||
platformTemplateRole: "template_admin",
|
||||
mustChangePassword: true,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user