Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: model updated for apicatalog
  • Loading branch information
Shivank2200 committed Nov 12, 2025
commit b09271aee137d0c3b3746711d8a58cbd214ff881
18 changes: 13 additions & 5 deletions app/models/BCA.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,20 @@ const apiCatalogSchema = new mongoose.Schema({
type: Boolean,
default: false
},
all: {
type: Boolean,
default: false
},
allowedApis: {
type: [mongoose.Schema.Types.ObjectId],
type: [
{
apiId: {
type: mongoose.Schema.Types.ObjectId,
required: true
},
price: {
type: Number,
required: true,
min: 0
}
}
],
default: []
}
})
Expand Down