feat(planning): ship holiday-aware planning and assistant upgrades
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
*/
|
||||
|
||||
import { PrismaClient } from "@prisma/client";
|
||||
import { loadWorkspaceEnv } from "./load-workspace-env.js";
|
||||
import { assertSafeSeedTarget } from "./safe-destructive-env.js";
|
||||
|
||||
loadWorkspaceEnv();
|
||||
|
||||
const prisma = new PrismaClient();
|
||||
|
||||
@@ -75,6 +79,7 @@ const YEARS = [2025, 2026, 2027];
|
||||
// ─── Main ─────────────────────────────────────────────────────────────────────
|
||||
|
||||
async function main() {
|
||||
assertSafeSeedTarget("db:seed:vacations");
|
||||
// Get admin user to act as approver (fall back to manager, then any user)
|
||||
const admin =
|
||||
(await prisma.user.findFirst({ where: { systemRole: "ADMIN" }, select: { id: true } })) ??
|
||||
|
||||
Reference in New Issue
Block a user