fix: Add free text search on reservations (#9621)

This commit is contained in:
Oli Juhl
2024-10-17 10:21:24 +02:00
committed by GitHub
parent df78f6e871
commit 0be50059f2
3 changed files with 89 additions and 1 deletions
@@ -14,6 +14,7 @@ import {
BigNumber,
DALUtils,
MikroOrmBigNumberProperty,
Searchable,
createPsqlIndexStatementHelper,
generateEntityId,
} from "@medusajs/framework/utils"
@@ -87,6 +88,7 @@ export class ReservationItem {
@Property({ type: "text", nullable: true })
external_id: string | null = null
@Searchable()
@Property({ type: "text", nullable: true })
description: string | null = null
@@ -105,6 +107,7 @@ export class ReservationItem {
})
inventory_item_id: string
@Searchable()
@ManyToOne(() => InventoryItem, {
persist: false,
})