From 1f6ad076c1534bed66e02810ef6afab97cddfa8f Mon Sep 17 00:00:00 2001 From: Lucas Berger Date: Mon, 15 Jun 2026 08:36:49 -0400 Subject: [PATCH] style(18): prettier-format household timezone accessor + outbox test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These two files (from the WR-01 / IN-03 review fixes) had formatting that failed `pnpm format:check`. No logic change — whitespace/wrapping only. Co-Authored-By: Claude Opus 4.8 (1M context) --- apps/api/src/lib/householdTimezone.ts | 4 +--- apps/api/tests/broker/outboxWorker.test.ts | 9 ++++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/api/src/lib/householdTimezone.ts b/apps/api/src/lib/householdTimezone.ts index 214b1c5..c87c954 100644 --- a/apps/api/src/lib/householdTimezone.ts +++ b/apps/api/src/lib/householdTimezone.ts @@ -22,9 +22,7 @@ import { appConfig } from '../db/schema.js'; * This is the D-05 single source of truth for the server-side all-day "9 AM local" * reminder computation in reminderScheduler.ts and outboxWorker.ts. */ -export async function getHouseholdTimezone( - db: MySql2Database, -): Promise { +export async function getHouseholdTimezone(db: MySql2Database): Promise { const [row] = await db .select({ value: appConfig.value }) .from(appConfig) diff --git a/apps/api/tests/broker/outboxWorker.test.ts b/apps/api/tests/broker/outboxWorker.test.ts index 7af166a..a70c2fb 100644 --- a/apps/api/tests/broker/outboxWorker.test.ts +++ b/apps/api/tests/broker/outboxWorker.test.ts @@ -1196,7 +1196,14 @@ describe('runOutboxDrain — Plan 18-03: stored household_timezone drives all-da end: '2026-06-20', reminderLeadMinutes: 1440, }); - mockPendingRows = [makeRow({ operation: 'update', calendarObjectUrl: 'https://example.com/event.ics', etag: 'W/"abc"', payload })]; + mockPendingRows = [ + makeRow({ + operation: 'update', + calendarObjectUrl: 'https://example.com/event.ics', + etag: 'W/"abc"', + payload, + }), + ]; // Provide etag so WR-02 re-read path resolves (no rawVevent → falls through to all-day branch) mockWhereCalEvents.mockResolvedValue([{ etag: 'W/"abc"' }]);