Skip to content

Commit

Permalink
Update ghost/core/core/server/data/migrations/versions/5.94/2024-09-0…
Browse files Browse the repository at this point in the history
…3-20-09-40-null-analytics-jobs-timings.js

Co-authored-by: Daniel Lockyer <[email protected]>
  • Loading branch information
9larsons and daniellockyer authored Sep 5, 2024
1 parent 84025ac commit d11bce4
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ const {createTransactionalMigration} = require('../../utils');
module.exports = createTransactionalMigration(
async function up(knex) {
try {
await knex.raw(`
DELETE FROM jobs
WHERE name = 'email-analytics-latest-opened' OR name = 'email-analytics-latest-others' OR name = 'email-analytics-missing';
`);
await knex('jobs')
.whereIn('name', ['email-analytics-latest-opened', 'email-analytics-latest-others', 'email-analytics-missing'])
.del();
} catch (error) {
logging.info(`Failed to delete email analytics jobs: ${error.message}`);
}
Expand Down

0 comments on commit d11bce4

Please sign in to comment.