feat: database management - auto/USB backup toggles, folder browser, cron jobs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user