Skip to content

Commit

Permalink
Feat/reset pnps (#4841)
Browse files Browse the repository at this point in the history
This PR resets pnps prompts by removing entries in the user_feedback
table
  • Loading branch information
FredrikOseberg authored Sep 27, 2023
1 parent f82ae35 commit ebb76a5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/migrations/20230927071830-reset-pnps-feedback.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use strict';

exports.up = function (db, callback) {
db.runSql(
`
DELETE FROM user_feedback WHERE feedback_id = 'pnps' AND given < NOW() - INTERVAL '3 months';
`,
callback(),
);
};

exports.down = function (db, callback) {
callback();
};

0 comments on commit ebb76a5

Please sign in to comment.