Skip to content

Commit

Permalink
test sonar cube
Browse files Browse the repository at this point in the history
  • Loading branch information
Olasunkanmi Oyinlola authored and Olasunkanmi Oyinlola committed Oct 26, 2023
1 parent e45b5cc commit 96319c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class OrderDataModel extends BaseDocument implements IOrderDataModel {

@Prop({ type: Number, required: true })
total: number;

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

0 comments on commit 96319c2

Please sign in to comment.