Skip to content

Commit

Permalink
Purge window set to 2 weeks
Browse files Browse the repository at this point in the history
  • Loading branch information
am1t committed Aug 14, 2018
1 parent 33b8036 commit 0ef589f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/threads.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ router.get('/edit', ensureAuthenticated, (req, res) => {

const purge_posts = function(thread_id){
var date = new Date();
var daysToDeletion = 60;
var daysToDeletion = 15;
var deletionDate = new Date(date.setDate(date.getDate() - daysToDeletion));

return new Promise((resolve, reject) => {
Expand All @@ -119,7 +119,7 @@ const purge_posts = function(thread_id){

const purge_recommendations = function(thread_id){
var date = new Date();
var daysToDeletion = 60;
var daysToDeletion = 15;
var deletionDate = new Date(date.setDate(date.getDate() - daysToDeletion));

return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 0ef589f

Please sign in to comment.