function recomputeListingBookingRanges
recomputeListingBookingRanges(
listingId: number,
durationDays: number,
): Promise<void>

Recompute end_at on all existing listing_attendees rows for an listing based on a new duration_days value. Leaves NULL-start rows alone. The .000Z suffix matches the format fresh inserts produce via toISOString() so raw-row dumps stay consistent.

Parameters

listingId: number
durationDays: number

Return Type

Promise<void>

Usage

import { recomputeListingBookingRanges } from "doc.ts";