Skip to content

Commit

Permalink
fix error in order data model
Browse files Browse the repository at this point in the history
  • Loading branch information
Olasunkanmi Oyinlola authored and Olasunkanmi Oyinlola committed Dec 11, 2023
1 parent e35faf8 commit 7521439
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class OrderDataModel extends BaseDocument implements IOrderDataModel {
@Prop({ type: Number, required: true })
total: number;

@Prop({ type: [{ type: mongoose.Schema.Types.ObjectId, ref: CartItemDataModel.name }] })
@Prop({ type: [{ type: mongoose.Schema.Types.ObjectId, ref: 'CartItemDataModel' }] })
@Type(() => CartItemDataModel)
cartItems?: CartItemDataModel[];

Expand Down

0 comments on commit 7521439

Please sign in to comment.