From 40aae4b66dd16c2c72f2f1a0e78e4d6a028e0799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 24 Jul 2026 23:18:26 +0200 Subject: [PATCH] chore(scripts): apply prettier to the phantom-med cleanup script Formatting only; the format:check gate flagged the file. No behaviour change. --- scripts/cleanup-apple-health-phantom-meds.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/cleanup-apple-health-phantom-meds.ts b/scripts/cleanup-apple-health-phantom-meds.ts index 3c5e94646..cd9f76a45 100644 --- a/scripts/cleanup-apple-health-phantom-meds.ts +++ b/scripts/cleanup-apple-health-phantom-meds.ts @@ -66,7 +66,9 @@ async function main(): Promise { deletable.push({ id: m.id, userId: m.userId }); } - console.log(`\n=== cleanup plan for name "${name}" (externalSource APPLE_HEALTH) ===`); + console.log( + `\n=== cleanup plan for name "${name}" (externalSource APPLE_HEALTH) ===`, + ); console.log(`candidates found: ${candidates.length}`); console.log(`safe to delete: ${deletable.length}`); console.log(`preserved (intake/schedule present): ${skipped.length}`); @@ -103,7 +105,11 @@ async function main(): Promise { await prisma.medication.delete({ where: { id } }); await auditLog("medication.delete", { userId, - details: { medicationId: id, name, reason: "apple_health_phantom_cleanup" }, + details: { + medicationId: id, + name, + reason: "apple_health_phantom_cleanup", + }, }); affectedUsers.add(userId); deleted += 1; @@ -113,7 +119,9 @@ async function main(): Promise { invalidateUserMedications(userId, { evict: true }); } - console.log(`\nDone. Deleted ${deleted} row(s) across ${affectedUsers.size} user(s).`); + console.log( + `\nDone. Deleted ${deleted} row(s) across ${affectedUsers.size} user(s).`, + ); console.log( "Caches were busted for the affected users; a page refresh reflects the change.", );