Merge pull request #745 from MBombeck/fix/encounter-orphan-exports

Drop the two visit exports nothing consumes yet
This commit is contained in:
Marc-André Bombeck authored and GitHub committed 2026-08-08 14:03:50 +02:00
commit 01f94df60b
2 files changed
-22

No files matched your search

-8
View File
@@ -26,14 +26,6 @@ import {
const DEFAULT_TIMEZONE = "Europe/Berlin";
export async function resolveTimezone(userId: string): Promise<string> {
const row = await prisma.user.findUnique({
where: { id: userId },
select: { timezone: true },
});
return row?.timezone || DEFAULT_TIMEZONE;
}
/**
* The record owner's zone AND language, read together.
*
-14
View File
@@ -238,20 +238,6 @@ export const medicationDependentKeys = [
*/
export const cycleDependentKeys = [queryKeys.cycle(), queryKeys.insightsRoot()];
/**
* Keys invalidated when a visit or an address-book entry changes.
*
* Both roots ride together in one bundle rather than two, because the two
* writes reach each other: renaming a practice changes the label every visit
* that names it renders, and deleting one nulls the reference on visits that
* stay. A bundle that evicted only the surface being written would leave the
* other showing the pre-write name.
*/
export const encounterDependentKeys = [
queryKeys.encounters(),
queryKeys.practitioners(),
];
/**
* Invalidate every key in the bundle in parallel. Use this from mutation
* `onSuccess` handlers so the call site stays a one-liner instead of repeating