fix(ci): Docker push auth + E2E DinD networking for Gitea #423

Merged
The Dogfather merged 10 commits from fix/ci-e2e-dind-networking-registry-auth into dev 2026-05-21 00:43:08 +00:00
Showing only changes of commit 0c7cd96130 - Show all commits
+4 -5
View File
@@ -143,7 +143,7 @@ bookRouter.post(
.where(and(eq(services.id, body.serviceId), eq(services.active, true))); .where(and(eq(services.id, body.serviceId), eq(services.active, true)));
if (!service) return c.json({ error: "Service not found" }, 404); if (!service) return c.json({ error: "Service not found" }, 404);
const end = new Date(start.getTime() + service.durationMinutes * 60_000); let end = new Date(start.getTime() + service.durationMinutes * 60_000);
// Find all active groomers // Find all active groomers
const groomers = await db const groomers = await db
@@ -213,10 +213,9 @@ bookRouter.post(
if (!pet) return c.json({ error: "Failed to create pet" }, 500); if (!pet) return c.json({ error: "Failed to create pet" }, 500);
// Buffer-aware end time: large/x-large pets add service bufferMinutes // Buffer-aware end time: large/x-large pets add service bufferMinutes
const extraBuffer = (body.petSizeCategory === "large" || body.petSizeCategory === "x-large") if (body.petSizeCategory === "large" || body.petSizeCategory === "x-large") {
? (service.defaultBufferMinutes ?? 0) end = new Date(start.getTime() + (service.durationMinutes + (service.defaultBufferMinutes ?? 0)) * 60_000);
: 0; }
const end = new Date(start.getTime() + (service.durationMinutes + extraBuffer) * 60_000);
// Insert appointment in a transaction to guard against race conditions // Insert appointment in a transaction to guard against race conditions
let appointment; let appointment;