ca733251b19466e9ed02b21986eb4b0cbb48deb7
PR #151 introduced seedUatGroomerLinkage() inside seedUatStaffAccounts(), which is called BEFORE the services catalogue is seeded. On a fresh reset, the helper bails with: ⚠ GRO-2100: no active services found — skipping uat-groomer linkage so the linkage never lands. This is why TC-UAT-2/3 still return 404/403 instead of 200/403 even with PR #152 + PR #613 deployed in UAT. Fix: - seedUatStaffAccounts() now returns the UAT Customer clientId (or null). - seedUatGroomerLinkage() is called by BOTH seed paths (seedKnownUsers and full seed()) AFTER the services insert completes. - Helper defends against null clientId and a missing linked pet (warns and skips instead of crashing). Idempotency is preserved: on a re-seed the appointment upsert key 'a0000001-0000-0000-0000-000000000001' is short-circuited. Refs: [GRO-2100](/GRO/issues/GRO-2100), unblocks [GRO-1987](/GRO/issues/GRO-1987) Co-Authored-By: Paperclip <noreply@paperclip.ing>
GroomBook API
GroomBook API service — extracted from the groombook/app monorepo.
Overview
This repository contains the GroomBook API service, including:
- REST API endpoints
- Database schema and migrations (via Drizzle ORM)
- Authentication (via Better Auth)
- Background job handlers
Structure
src/ # API service source
packages/db/ # Database schema, migrations, and utilities
packages/types/ # Shared TypeScript types
Setup
pnpm install
cp .env.example .env # Fill in required environment variables
pnpm --filter @groombook/api dev
Docker
docker build -t ghcr.io/groombook/api:latest .
docker run -p 3000:3000 ghcr.io/groombook/api:latest
License
AGPL-3.0-only
Description
Languages
TypeScript
99.3%
JavaScript
0.4%
Dockerfile
0.2%