mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Feat/reset pnps (#4841)
This PR resets pnps prompts by removing entries in the user_feedback table
This commit is contained in:
		
							parent
							
								
									f82ae354eb
								
							
						
					
					
						commit
						ebb76a5354
					
				
							
								
								
									
										14
									
								
								src/migrations/20230927071830-reset-pnps-feedback.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								src/migrations/20230927071830-reset-pnps-feedback.js
									
									
									
									
									
										Normal 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(); | ||||
| }; | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user