A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
fix #1095: make PDF_DELETION_TIME optional, add default value
Amruth Pillaid1a1b6830246
diff --git a/.env.example b/.env.exampleindex 3ead98d1c..e300445c5 100644--- a/.env.example+++ b/.env.example@@ -34,7 +34,7 @@ STORAGE_ENDPOINT=STORAGE_URL_PREFIX=STORAGE_ACCESS_KEY=STORAGE_SECRET_KEY=-PDF_DELETION_TIME=+PDF_DELETION_TIME=345600000# Flags (Client)PUBLIC_FLAG_DISABLE_SIGNUPS=false\ No newline at end of filediff --git a/server/src/config/cache.config.ts b/server/src/config/cache.config.tsindex ad2348b11..5f6cd6d5e 100644--- a/server/src/config/cache.config.ts+++ b/server/src/config/cache.config.ts@@ -1,5 +1,5 @@import { registerAs } from '@nestjs/config';export default registerAs('cache', () => ({- pdfDeletionTime: parseInt(process.env.PDF_DELETION_TIME, 10),+ pdfDeletionTime: parseInt(process.env.PDF_DELETION_TIME, 10) || 4 * 24 * 60 * 60 * 1000, // 4 days}));diff --git a/server/src/config/config.module.ts b/server/src/config/config.module.tsindex 2f9f53ce8..4f335191e 100644--- a/server/src/config/config.module.ts+++ b/server/src/config/config.module.ts@@ -55,7 +55,9 @@ const validationSchema = Joi.object({STORAGE_SECRET_KEY: Joi.string().allow(''),// Cache- PDF_DELETION_TIME: Joi.number().default(4 * 24 * 60 * 60 * 1000), // 4 days+ PDF_DELETION_TIME: Joi.number()+ .default(4 * 24 * 60 * 60 * 1000) // 4 days+ .allow(''),});@Module({