Skip to content

Commit

Permalink
update itemType ref in large item schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tdkent committed Jan 8, 2024
1 parent 7b4f543 commit 9069214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/bmdashboard/buildingInventoryItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const smallItemBase = mongoose.model('smallItemBase', smallItemBaseSchema, 'buil
// documents stored in 'buildingInventoryItems' collection

const largeItemBaseSchema = mongoose.Schema({
itemType: { type: mongoose.SchemaTypes.ObjectId, ref: 'buildingInventoryType' },
itemType: { type: mongoose.SchemaTypes.ObjectId, ref: 'invTypeBase' },
project: { type: mongoose.SchemaTypes.ObjectId, ref: 'buildingProject' },
purchaseStatus: { type: String, enum: ['Rental', 'Purchase'], required: true },
// rental fields are required if purchaseStatus = "Rental" (hopefully correct syntax)
Expand Down

0 comments on commit 9069214

Please sign in to comment.