fix: 固定默认品牌解析避免多品牌串线
This commit is contained in:
1 parent
045472035b
commit
cbe9d26288
4 files changed
+58
-2
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user