fix: correct enum value in books
Node.js CI / CI (pull_request) Successful in 1m21s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m28s

This commit is contained in:
2026-02-20 16:43:59 -08:00
parent b3eac4f584
commit 7e47e87d85
+1 -1
View File
@@ -48,7 +48,7 @@ export class BookService {
if (data.coverImage) { if (data.coverImage) {
if (data.coverImage.startsWith("data:")) { if (data.coverImage.startsWith("data:")) {
const sizeInBytes = data.coverImage.length * 0.75; const sizeInBytes = data.coverImage.length * 0.75;
if (sizeInBytes > MAX_LENGTHS.IMAGE_DATA) { if (sizeInBytes > MAX_LENGTHS.DATA_URL) {
throw new Error("Cover image must be under 5MB."); throw new Error("Cover image must be under 5MB.");
} }
if (!validateDataUrl(data.coverImage)) { if (!validateDataUrl(data.coverImage)) {