chore(deps-dev): bump prettier from 2.1.2 to 2.8.8 (#5372)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
@@ -4,9 +4,7 @@ import NotificationHelper from "@server/models/helpers/NotificationHelper";
|
||||
import { CollectionEvent } from "@server/types";
|
||||
import BaseTask, { TaskPriority } from "./BaseTask";
|
||||
|
||||
export default class CollectionCreatedNotificationsTask extends BaseTask<
|
||||
CollectionEvent
|
||||
> {
|
||||
export default class CollectionCreatedNotificationsTask extends BaseTask<CollectionEvent> {
|
||||
public async perform(event: CollectionEvent) {
|
||||
const collection = await Collection.findByPk(event.collectionId);
|
||||
|
||||
@@ -15,10 +13,11 @@ export default class CollectionCreatedNotificationsTask extends BaseTask<
|
||||
return;
|
||||
}
|
||||
|
||||
const recipients = await NotificationHelper.getCollectionNotificationRecipients(
|
||||
collection,
|
||||
NotificationEventType.CreateCollection
|
||||
);
|
||||
const recipients =
|
||||
await NotificationHelper.getCollectionNotificationRecipients(
|
||||
collection,
|
||||
NotificationEventType.CreateCollection
|
||||
);
|
||||
|
||||
for (const recipient of recipients) {
|
||||
// Suppress notifications for suspended users
|
||||
|
||||
Reference in New Issue
Block a user