improvement: v1 standalone treatment/case creation made possible.
This commit is contained in:
@@ -37,6 +37,7 @@ async function main() {
|
||||
|
||||
let total = 0;
|
||||
for (const labCase of cases) {
|
||||
if (!labCase.treatment) continue;
|
||||
const locale = labCase.treatment.organization.owner.language ?? 'en';
|
||||
// Clear any stale tasks first so the generator's "already exists" guard passes.
|
||||
await prisma.labCaseTask.deleteMany({ where: { labCaseId: labCase.id } });
|
||||
|
||||
Reference in New Issue
Block a user