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

+4 -1
View File
@@ -69,7 +69,10 @@ export class PublicController {
@Get("brand")
async brand(): Promise<unknown> {
return this.prisma.brandProfile.findFirst({
return this.prisma.brandProfile.findUnique({
where: {
id: process.env.DEFAULT_BRAND_ID ?? "00000000-0000-0000-0000-000000000001",
},
select: {
id: true,
name: true,