Merge branch 'staging' into preprod
This commit is contained in:
commit
0ebeb9a41f
@ -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`,
|
||||
};
|
||||
|
@ -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
|
||||
},
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user