fix: product category types (#8833)

This commit is contained in:
Alexander Nortung
2024-08-28 11:13:03 +02:00
committed by GitHub
parent c72b4847b9
commit afd6fdcdf6
2 changed files with 3 additions and 2 deletions
@@ -113,7 +113,7 @@ class ProductCategory {
deleted_at?: Date
@Property({ columnType: "jsonb", nullable: true })
metadata?: Record<string, unknown> | null
metadata: Record<string, unknown> | null = null
@ManyToMany(() => Product, (product) => product.categories)
products = new Collection<Product>(this)