1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

chore(1-3333): add new pnps reset

This commit is contained in:
Thomas Heartman 2025-02-05 14:26:48 +01:00
parent 17a4099dbf
commit 89a70cf253
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78

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 '6 months';
`,
callback(),
);
};
exports.down = function (db, callback) {
callback();
};