1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00

Feat/reset pnps (#4841)

This PR resets pnps prompts by removing entries in the user_feedback
table
This commit is contained in:
Fredrik Strand Oseberg 2023-09-27 12:03:02 +02:00 committed by GitHub
parent f82ae354eb
commit ebb76a5354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
};