We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc1a4bc commit 0ef3a29Copy full SHA for 0ef3a29
src/jobs/accountCleanup.js
@@ -37,7 +37,7 @@ module.exports.removeUnconfirmedAccounts = async () => {
37
accounts = accounts.filter(account => Date.parse(account.createdAt) < Date.now() - MAX_UNCONFIRMED_ACCOUNT_AGE);
38
const accountIds = accounts.map(account => account.id);
39
40
- awaitPromise.all([
+ Promise.all([
41
Events.findAll({
42
where: {
43
ownerId: { [Op.in]: accountIds },
@@ -69,16 +69,14 @@ module.exports.emailConfirmationRemainder = async () => {
69
70
// find and retreive all the users with an unconfirmed email address
71
72
- let accounts = await User.findAll(
73
- {
74
- where:
75
76
- confirmed_email: false,
77
- },
78
- attributes: ['id', 'createdAt', 'username', 'email'],
79
- raw: true,
+ let accounts = await User.findAll({
+ where: {
+ confirmed_email: false,
80
},
81
- )
+ attributes: ['id', 'createdAt', 'username', 'email'],
+ raw: true,
+ })
+
82
if (!accounts?.length) {
83
return;
84
}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments