Add Order Detail
This commit is contained in:
@@ -52,6 +52,7 @@ func (r *OrderRepository) FindByID(ctx context.Context, id int64) (*entity.Order
|
||||
Preload("OrderItems", func(db *gorm.DB) *gorm.DB {
|
||||
return db.Preload("Product")
|
||||
}).
|
||||
Preload("Site").
|
||||
Preload("User").
|
||||
Preload("Payment").
|
||||
First(&order, id).Error
|
||||
|
||||
Reference in New Issue
Block a user