feat: 完成举报拉黑和审核处置闭环
This commit is contained in:
+8
-1
@@ -23,10 +23,16 @@ async function seed(): Promise<void> {
|
||||
nickname: "星河",
|
||||
publicId: "00000000-0000-4000-8000-000000000002",
|
||||
},
|
||||
{
|
||||
key: "demo-admin",
|
||||
nickname: "管理员",
|
||||
publicId: "00000000-0000-4000-8000-000000000003",
|
||||
},
|
||||
].map(({ key, nickname, publicId }) =>
|
||||
prisma.account.upsert({
|
||||
where: { phoneHmac: id(`drift-bottle:${key}:phone-hmac`) },
|
||||
update: {
|
||||
role: key === "demo-admin" ? "ADMIN" : "USER",
|
||||
anonymousProfile: {
|
||||
upsert: {
|
||||
create: {
|
||||
@@ -44,6 +50,7 @@ async function seed(): Promise<void> {
|
||||
},
|
||||
},
|
||||
create: {
|
||||
role: key === "demo-admin" ? "ADMIN" : "USER",
|
||||
phoneCiphertext: Buffer.from(
|
||||
id(`drift-bottle:${key}:ciphertext`),
|
||||
"hex",
|
||||
@@ -78,7 +85,7 @@ async function seed(): Promise<void> {
|
||||
});
|
||||
|
||||
console.info(
|
||||
"Seed complete: 2 demo accounts, 2 anonymous profiles, 1 in-pool bottle.",
|
||||
"Seed complete: 3 demo accounts (including admin), 3 anonymous profiles, 1 in-pool bottle.",
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user