From 8aa8d97570042b0ba80387a3ccc41a939899f420 Mon Sep 17 00:00:00 2001 From: lcmetzger Date: Thu, 21 Apr 2022 14:53:33 -0300 Subject: [PATCH] =?UTF-8?q?Utiliza=C3=A7=C3=A3o=20de=20model=20incorreto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Utilização de model incorreto --- .../order/repository/sequilize/order-item.model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infrastructure/order/repository/sequilize/order-item.model.ts b/src/infrastructure/order/repository/sequilize/order-item.model.ts index 7becc4f..b4ef1bd 100644 --- a/src/infrastructure/order/repository/sequilize/order-item.model.ts +++ b/src/infrastructure/order/repository/sequilize/order-item.model.ts @@ -31,7 +31,7 @@ export default class OrderItemModel extends Model { declare order_id: string; @BelongsTo(() => OrderModel) - declare order: ProductModel; + declare order: OrderModel; @Column({ allowNull: false }) declare quantity: number;