fix: 固定默认品牌解析避免多品牌串线

This commit is contained in:
que01 committed 2026-09-23 12:05:33 +08:00
1 parent 045472035b
commit cbe9d26288
4 files changed
+58 -2

No files matched your search

+2
View File
@@ -781,6 +781,8 @@ test("admin can list and switch only enabled brand memberships", async () => {
assert.equal(brands.statusCode, 200);
const memberships = JSON.parse(brands.body);
assert.ok(memberships.some((item) => item.brand.id === brandId));
assert.ok(memberships.some((item) => item.brand.slug === "linjing-doors"));
assert.ok(memberships.length >= 2);
const denied = await request("/admin/brands/00000000-0000-0000-0000-000000000000/switch", {
method: "POST",
headers: { authorization: `Bearer ${token}` },