fix(utils, types, medusa-plugin-meilisearch, medusa-plugin-algolia): move SoftDeletableFilterKey, variantKeys, indexTypes from types to utils (#4623)
* chore: move SoftDeletableKey from types to utils * chore: move variantkeys, indextypes
This commit is contained in:
@@ -162,9 +162,9 @@ class AlgoliaService extends SearchUtils.AbstractSearchService {
|
||||
}
|
||||
|
||||
switch (type) {
|
||||
case SearchTypes.indexTypes.PRODUCTS:
|
||||
case SearchUtils.indexTypes.PRODUCTS:
|
||||
const productsTransformer =
|
||||
this.config_.settings?.[SearchTypes.indexTypes.PRODUCTS]
|
||||
this.config_.settings?.[SearchUtils.indexTypes.PRODUCTS]
|
||||
?.transformer ?? transformProduct
|
||||
|
||||
return documents.map(productsTransformer)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { variantKeys } from "@medusajs/types"
|
||||
import { variantKeys } from "@medusajs/utils"
|
||||
|
||||
const prefix = `variant`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user