summaryrefslogtreecommitdiff
path: root/packages/backend/src/services/send-email-notification.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-03-26 15:34:00 +0900
committerGitHub <noreply@github.com>2022-03-26 15:34:00 +0900
commit1c67c26bd87aae64fe0f2ef45140e12a78564699 (patch)
tree633a3fad1c5841ea20bc39d6b681b455bbdeabf3 /packages/backend/src/services/send-email-notification.ts
parent.js (diff)
downloadmisskey-1c67c26bd87aae64fe0f2ef45140e12a78564699.tar.gz
misskey-1c67c26bd87aae64fe0f2ef45140e12a78564699.tar.bz2
misskey-1c67c26bd87aae64fe0f2ef45140e12a78564699.zip
refactor: migrate to typeorm 3.0 (#8443)
* wip * wip * wip * Update following.ts * wip * wip * wip * Update resolve-user.ts * maxQueryExecutionTime * wip * wip
Diffstat (limited to 'packages/backend/src/services/send-email-notification.ts')
-rw-r--r--packages/backend/src/services/send-email-notification.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/services/send-email-notification.ts b/packages/backend/src/services/send-email-notification.ts
index debaf3476d..4a2f94b425 100644
--- a/packages/backend/src/services/send-email-notification.ts
+++ b/packages/backend/src/services/send-email-notification.ts
@@ -10,7 +10,7 @@ import * as Acct from '@/misc/acct.js';
async function follow(userId: User['id'], follower: User) {
/*
- const userProfile = await UserProfiles.findOneOrFail({ userId: userId });
+ const userProfile = await UserProfiles.findOneByOrFail({ userId: userId });
if (!userProfile.email || !userProfile.emailNotificationTypes.includes('follow')) return;
const locale = locales[userProfile.lang || 'ja-JP'];
const i18n = new I18n(locale);
@@ -21,7 +21,7 @@ async function follow(userId: User['id'], follower: User) {
async function receiveFollowRequest(userId: User['id'], follower: User) {
/*
- const userProfile = await UserProfiles.findOneOrFail({ userId: userId });
+ const userProfile = await UserProfiles.findOneByOrFail({ userId: userId });
if (!userProfile.email || !userProfile.emailNotificationTypes.includes('receiveFollowRequest')) return;
const locale = locales[userProfile.lang || 'ja-JP'];
const i18n = new I18n(locale);