mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
chore: drop two exports nothing reads
The delivery-state reader in the error-reporting module had no caller: the card reads the three columns itself. The skippable-step id type was exported for a consumer that never appeared. The dead-code gate names both.
This commit is contained in:
1 parent
29a02d6741
commit
fd46dcc3a1
2 files changed
-23
No files matched your search
@@ -110,23 +110,3 @@ export function summariseGlitchtipDelivery(
|
||||
windowHours: GLITCHTIP_DELIVERY_WINDOW_HOURS,
|
||||
};
|
||||
}
|
||||
|
||||
export async function getGlitchtipDeliveryState(): Promise<GlitchtipDeliveryState> {
|
||||
try {
|
||||
const settings = await prisma.appSettings.findUnique({
|
||||
where: { id: "singleton" },
|
||||
select: {
|
||||
glitchtipLastOkAt: true,
|
||||
glitchtipLastFailureAt: true,
|
||||
glitchtipLastFailureReason: true,
|
||||
},
|
||||
});
|
||||
return {
|
||||
lastOkAt: settings?.glitchtipLastOkAt ?? null,
|
||||
lastFailureAt: settings?.glitchtipLastFailureAt ?? null,
|
||||
lastFailureReason: settings?.glitchtipLastFailureReason ?? null,
|
||||
};
|
||||
} catch {
|
||||
return { lastOkAt: null, lastFailureAt: null, lastFailureReason: null };
|
||||
}
|
||||
}
|
||||
@@ -69,9 +69,6 @@ export const ONBOARDING_SKIPPABLE_STEP_IDS = [
|
||||
"first-result",
|
||||
] as const;
|
||||
|
||||
export type OnboardingSkippableStepId =
|
||||
(typeof ONBOARDING_SKIPPABLE_STEP_IDS)[number];
|
||||
|
||||
/**
|
||||
* Q1 — whose record this is. The vocabularies below are pinned against the
|
||||
* registry's derivation input with `satisfies`, so a value added here that the
|
||||
|
||||
Reference in new issue
Block a user