mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
Truncated suppressions table
We have been adding emails to the suppressions table which are not on the suppression list in Mailgun due to a misunderstanding of how Mailgun handles 5xx error codes.
This commit is contained in:
parent
49af26279d
commit
8005e8a641
@ -0,0 +1,12 @@
|
||||
const logging = require('@tryghost/logging');
|
||||
const {createNonTransactionalMigration} = require('../../utils');
|
||||
|
||||
module.exports = createNonTransactionalMigration(
|
||||
async function up(knex) {
|
||||
logging.info('Clearing suppressions table');
|
||||
await knex('suppressions').truncate();
|
||||
},
|
||||
async function down() {
|
||||
logging.info('Not doing anything - table has been truncated');
|
||||
}
|
||||
);
|
Loading…
Reference in New Issue
Block a user