mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
fix email notification bug
This commit is contained in:
parent
9c59d57d7a
commit
3424223931
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
import { publishMainStream } from './stream';
|
||||
import pushSw from './push-notification';
|
||||
import { Notifications, Mutings, UserProfiles } from '../models';
|
||||
import { Notifications, Mutings, UserProfiles, Users } from '../models';
|
||||
import { genId } from '@/misc/gen-id';
|
||||
import { User } from '../models/entities/user';
|
||||
import { Notification } from '../models/entities/notification';
|
||||
|
@ -53,8 +53,8 @@ export async function createNotification(
|
|||
publishMainStream(notifieeId, 'unreadNotification', packed);
|
||||
|
||||
pushSw(notifieeId, 'notification', packed);
|
||||
if (type === 'follow') sendEmailNotification.follow(notifieeId, data);
|
||||
if (type === 'receiveFollowRequest') sendEmailNotification.receiveFollowRequest(notifieeId, data);
|
||||
if (type === 'follow') sendEmailNotification.follow(notifieeId, await Users.findOneOrFail(data.notifierId!));
|
||||
if (type === 'receiveFollowRequest') sendEmailNotification.receiveFollowRequest(notifieeId, await Users.findOneOrFail(data.notifierId!));
|
||||
}, 2000);
|
||||
|
||||
return notification;
|
||||
|
|
Loading…
Reference in a new issue