Cache meta
This commit is contained in:
parent
8a55bdd89d
commit
5aa5896b22
34 changed files with 62 additions and 55 deletions
|
|
@ -2,7 +2,7 @@ import $ from 'cafy';
|
|||
import { publishMainStream } from '../../../../services/stream';
|
||||
import define from '../../define';
|
||||
import * as nodemailer from 'nodemailer';
|
||||
import fetchMeta from '../../../../misc/fetch-meta';
|
||||
import { fetchMeta } from '../../../../misc/fetch-meta';
|
||||
import rndstr from 'rndstr';
|
||||
import config from '../../../../config';
|
||||
import * as ms from 'ms';
|
||||
|
|
@ -63,7 +63,7 @@ export default define(meta, async (ps, user) => {
|
|||
emailVerifyCode: code
|
||||
});
|
||||
|
||||
const meta = await fetchMeta();
|
||||
const meta = await fetchMeta(true);
|
||||
|
||||
const enableAuth = meta.smtpUser != null && meta.smtpUser !== '';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue