security/codeql-dependabot-gitleaks
| 1 | /** |
| 2 | * cleanup temporary created resources for the migrations |
| 3 | * @internal I didnt find a god place to put that, should we eventually add a close function |
| 4 | * to the planner to handle that part? so that you would do planner.close() and it will handle the cleanup |
| 5 | * automatically just like we usually do for the classic migrations actions |
| 6 | */ |
| 7 | export async function clearInstances() { |
| 8 | const { MedusaModule } = require("@medusajs/framework/modules-sdk") |
| 9 | MedusaModule.clearInstances() |
| 10 | } |