feat: database management - auto/USB backup toggles, folder browser, cron jobs

This commit is contained in:
ff
2026-04-11 00:32:39 -04:00
parent b9a7ddb6d7
commit 4025ca45e0
218 changed files with 1995 additions and 1381 deletions

View File

@@ -1,8 +1,7 @@
import * as z from 'zod';
import type { Prisma } from '../../generated/prisma';
import Decimal from "decimal.js";
import { Prisma } from '../../generated/prisma';
import Decimal from 'decimal.js';
// DECIMAL HELPERS
//------------------------------------------------------
@@ -24,7 +23,7 @@ export const isValidDecimalInput = (
if (v === undefined || v === null) return false;
return (
// Explicit instance checks first
v instanceof Decimal ||
v instanceof Prisma.Decimal ||
// If Decimal.js is present and imported by the generator, this symbol exists at runtime
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore - Decimal may be undefined when not installed; codegen controls the import