This commit is contained in:
tamaina 2021-02-10 01:54:07 +09:00
parent c44a29ebb7
commit f95ca164d6
11 changed files with 259 additions and 176 deletions

View file

@ -1,5 +1,5 @@
import { publishMainStream } from './stream';
import pushSw from './push-notification';
import { pushNotification } from './push-notification';
import { Notifications, Mutings, UserProfiles } from '../models';
import { genId } from '../misc/gen-id';
import { User } from '../models/entities/user';
@ -50,7 +50,7 @@ export async function createNotification(
publishMainStream(notifieeId, 'unreadNotification', packed);
pushSw(notifieeId, 'notification', packed);
pushNotification(notifieeId, 'notification', packed);
}
}, 2000);