promote: uat → main (GRO-1509 OIDC accountLinking fix) #46

Merged
Scrubs McBarkley merged 110 commits from uat into main 2026-05-22 14:03:44 +00:00
2 changed files with 7 additions and 1 deletions
Showing only changes of commit 59893908e2 - Show all commits
@@ -2,6 +2,7 @@ import { describe, it, expect, vi, beforeEach } from "vitest";
import { Hono } from "hono"; import { Hono } from "hono";
import type { AppEnv, StaffRow } from "../middleware/rbac.js"; import type { AppEnv, StaffRow } from "../middleware/rbac.js";
import { petsRouter } from "../routes/pets.js"; import { petsRouter } from "../routes/pets.js";
import { and, eq, exists, or } from "../db/index.js";
// ─── Mock staff fixtures ────────────────────────────────────────────────────── // ─── Mock staff fixtures ──────────────────────────────────────────────────────
@@ -134,7 +135,7 @@ function makeDeleteChainable(): unknown {
} }
if (prop === "returning") { if (prop === "returning") {
return () => { return () => {
const row = petRows[0]; const row = petRows[0]!;
deletedId = row.id as string; deletedId = row.id as string;
return [row]; return [row];
}; };
+5
View File
@@ -103,6 +103,11 @@ export function buildPet(overrides: Partial<PetRow> & { clientId: string }): Pet
photoKey: null, photoKey: null,
photoUploadedAt: null, photoUploadedAt: null,
image: null, image: null,
coatType: null,
temperamentScore: null,
temperamentFlags: [],
medicalAlerts: [],
preferredCuts: [],
createdAt: new Date("2025-01-01T00:00:00Z"), createdAt: new Date("2025-01-01T00:00:00Z"),
updatedAt: new Date("2025-01-01T00:00:00Z"), updatedAt: new Date("2025-01-01T00:00:00Z"),
}; };