Skip to content

Commit

Permalink
Add index to variantId in ProductSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalsoueidan committed Mar 12, 2024
1 parent 21ae0e7 commit 0c5c646
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/functions/schedule/schemas/product.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const ProductSchema = new mongoose.Schema<ScheduleProduct>(
},
variantId: {
type: Number,
index: true,
},
selectedOptions: {
name: String,
Expand Down

0 comments on commit 0c5c646

Please sign in to comment.