Changed file duration from 3 month to 1 year

This commit is contained in:
Vins 2025-04-25 10:53:17 +02:00
parent 64890ec32d
commit eb7f94c986
2 changed files with 7 additions and 7 deletions

View File

@ -49,8 +49,8 @@ export default class EmailBuilder {
const to = document.depositor!.contact!.email;
const templateVariables = {
first_name: document.depositor!.contact!.first_name,
last_name: document.depositor!.contact!.last_name,
first_name: document.depositor!.contact!.first_name || "",
last_name: document.depositor!.contact!.last_name || "",
office_name: document.folder!.office!.name,
link: `${this.variables.APP_HOST}/customer-login`,
};
@ -146,8 +146,8 @@ export default class EmailBuilder {
const to = customer.contact!.email;
const templateVariables = {
office_name: customer.office?.name,
last_name: customer.contact!.last_name,
first_name: customer.contact!.first_name,
last_name: customer.contact!.last_name || "",
first_name: customer.contact!.first_name || "",
link: this.variables.APP_HOST,
};
@ -193,8 +193,8 @@ export default class EmailBuilder {
const to = document.customer!.contact!.email;
const templateVariables = {
first_name: document.customer?.contact?.first_name,
last_name: document.customer?.contact?.last_name,
first_name: document.customer?.contact?.first_name || "",
last_name: document.customer?.contact?.last_name || "",
office_name: document.folder!.office!.name,
link: `${this.variables.APP_HOST}/customer-login`,
};

View File

@ -120,7 +120,7 @@ export default class FilesService extends BaseService {
return this.filesRepository.findMany({
where: {
archived_at: null,
created_at: { lt: new Date(Date.now() - 1000 * 60 * 60 * 24 * 30 * 3) }, // 90 days
created_at: { lt: new Date(Date.now() - 1000 * 60 * 60 * 24 * 365) }, // 1 year old
},
});
}