fix: 保证示例内容导入幂等
This commit is contained in:
1 parent
3f42388fb3
commit
fef0a890ad
2 files changed
+5
-2
No files matched your search
@@ -213,7 +213,7 @@ test("admin can preview and import sample content idempotently", async () => {
|
||||
await prisma.offering.deleteMany({
|
||||
where: {
|
||||
brandId,
|
||||
categoryKey: { in: ["entrance-door", "garden-door", "interior-door", "custom"] },
|
||||
name: { in: ["序章·入户门", "庭院·边界门", "室内·静谧门", "一对一门系统设计咨询"] },
|
||||
},
|
||||
});
|
||||
await prisma.trustContent.deleteMany({
|
||||
|
||||
Reference in new issue
Block a user