Fire comments email notifications

This commit is contained in:
vjrj 2018-03-05 09:59:55 +01:00
parent 90f1e5ba9c
commit a8a1c43f2c
24 changed files with 820 additions and 42 deletions

View file

@ -1,4 +1,4 @@
/* global Migrations */
/* global Migrations, Comments */
/* eslint-disable import/no-absolute-path */
import { Meteor } from 'meteor/meteor';
import { Accounts } from 'meteor/accounts-base';
@ -157,6 +157,12 @@ Meteor.startup(() => {
}
});
Migrations.add({
version: 11,
up: function noAnonComments() {
Comments.getCollection().remove({ isAnonymous: true });
}
});
// Set createdAt in users & subs
Migrations.migrateTo('latest');