Merge branch 'dev' into staging
This commit is contained in:
commit
07ead498d1
@ -49,8 +49,8 @@ export default class EmailBuilder {
|
|||||||
|
|
||||||
const to = document.depositor!.contact!.email;
|
const to = document.depositor!.contact!.email;
|
||||||
const templateVariables = {
|
const templateVariables = {
|
||||||
first_name: document.depositor!.contact!.first_name,
|
first_name: document.depositor!.contact!.first_name || "",
|
||||||
last_name: document.depositor!.contact!.last_name,
|
last_name: document.depositor!.contact!.last_name || "",
|
||||||
office_name: document.folder!.office!.name,
|
office_name: document.folder!.office!.name,
|
||||||
link: `${this.variables.APP_HOST}/customer-login`,
|
link: `${this.variables.APP_HOST}/customer-login`,
|
||||||
};
|
};
|
||||||
@ -146,8 +146,8 @@ export default class EmailBuilder {
|
|||||||
const to = customer.contact!.email;
|
const to = customer.contact!.email;
|
||||||
const templateVariables = {
|
const templateVariables = {
|
||||||
office_name: customer.office?.name,
|
office_name: customer.office?.name,
|
||||||
last_name: customer.contact!.last_name,
|
last_name: customer.contact!.last_name || "",
|
||||||
first_name: customer.contact!.first_name,
|
first_name: customer.contact!.first_name || "",
|
||||||
link: this.variables.APP_HOST,
|
link: this.variables.APP_HOST,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -193,8 +193,8 @@ export default class EmailBuilder {
|
|||||||
|
|
||||||
const to = document.customer!.contact!.email;
|
const to = document.customer!.contact!.email;
|
||||||
const templateVariables = {
|
const templateVariables = {
|
||||||
first_name: document.customer?.contact?.first_name,
|
first_name: document.customer?.contact?.first_name || "",
|
||||||
last_name: document.customer?.contact?.last_name,
|
last_name: document.customer?.contact?.last_name || "",
|
||||||
office_name: document.folder!.office!.name,
|
office_name: document.folder!.office!.name,
|
||||||
link: `${this.variables.APP_HOST}/customer-login`,
|
link: `${this.variables.APP_HOST}/customer-login`,
|
||||||
};
|
};
|
||||||
|
@ -120,7 +120,7 @@ export default class FilesService extends BaseService {
|
|||||||
return this.filesRepository.findMany({
|
return this.filesRepository.findMany({
|
||||||
where: {
|
where: {
|
||||||
archived_at: null,
|
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