Skip to content

Commit b12b3b9

Browse files
authored
fix(server): bundle limit is invalid, bundleId missing (#870)
1 parent 51d1613 commit b12b3b9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

server/prisma/schema.prisma

+3-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ model Bundle {
136136
}
137137

138138
model ApplicationBundle {
139-
id String @id @default(auto()) @map("_id") @db.ObjectId
140-
appid String @unique
139+
id String @id @default(auto()) @map("_id") @db.ObjectId
140+
appid String @unique
141+
bundleId String @db.ObjectId
141142
name String
142143
displayName String
143144
resource BundleResource

server/src/application/application.controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class ApplicationController {
6464
where: {
6565
createdBy: user.id,
6666
bundle: {
67-
id: dto.bundleId,
67+
bundleId: dto.bundleId,
6868
},
6969
},
7070
})

server/src/application/application.service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export class ApplicationService {
5050
},
5151
bundle: {
5252
create: {
53+
bundleId: bundle.id,
5354
name: bundle.name,
5455
displayName: bundle.displayName,
5556
price: bundle.price,

0 commit comments

Comments
 (0)