Move utils to the utils package as much as possible Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
10 lines
269 B
TypeScript
10 lines
269 B
TypeScript
import { MODULE_RESOURCE_TYPE } from "@medusajs/types"
|
|
|
|
export function shouldForceTransaction(target: any): boolean {
|
|
return target.moduleDeclaration?.resources === MODULE_RESOURCE_TYPE.ISOLATED
|
|
}
|
|
|
|
export function doNotForceTransaction(): boolean {
|
|
return false
|
|
}
|