mirror of
https://github.com/docmost/docmost.git
synced 2025-11-19 03:02:09 +10:00
chore: fix linting (#544)
* fix: eslint (server) * fix: eslint (client) * commit package lock file * fix linting
This commit is contained in:
@ -42,7 +42,7 @@ export class ExportService {
|
||||
content: [{ type: 'text', text: getPageTitle(page.title) }],
|
||||
};
|
||||
|
||||
let prosemirrorJson: any = getProsemirrorContent(page.content);
|
||||
const prosemirrorJson: any = getProsemirrorContent(page.content);
|
||||
|
||||
if (page.title) {
|
||||
prosemirrorJson.content.unshift(titleNode);
|
||||
|
||||
@ -25,7 +25,7 @@ export const mailDriverConfigProvider = {
|
||||
const driver = environmentService.getMailDriver().toLocaleLowerCase();
|
||||
|
||||
switch (driver) {
|
||||
case MailOption.SMTP:
|
||||
case MailOption.SMTP: {
|
||||
let auth = undefined;
|
||||
if (
|
||||
environmentService.getSmtpUsername() &&
|
||||
@ -44,9 +44,10 @@ export const mailDriverConfigProvider = {
|
||||
connectionTimeout: 30 * 1000, // 30 seconds
|
||||
auth,
|
||||
secure: environmentService.getSmtpSecure(),
|
||||
ignoreTLS: environmentService.getSmtpIgnoreTLS()
|
||||
ignoreTLS: environmentService.getSmtpIgnoreTLS(),
|
||||
} as SMTPTransport.Options,
|
||||
};
|
||||
}
|
||||
|
||||
case MailOption.Postmark:
|
||||
return {
|
||||
|
||||
@ -41,7 +41,7 @@ export const storageDriverConfigProvider = {
|
||||
};
|
||||
|
||||
case StorageOption.S3:
|
||||
const s3Config = {
|
||||
{ const s3Config = {
|
||||
driver,
|
||||
config: {
|
||||
region: environmentService.getAwsS3Region(),
|
||||
@ -68,7 +68,7 @@ export const storageDriverConfigProvider = {
|
||||
};
|
||||
}
|
||||
|
||||
return s3Config;
|
||||
return s3Config; }
|
||||
|
||||
default:
|
||||
throw new Error(`Unknown storage driver: ${driver}`);
|
||||
|
||||
Reference in New Issue
Block a user