Skip to content

Commit

Permalink
uncommenting env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hannah-macdonald1 committed Feb 1, 2024
1 parent d4dd955 commit 6cde014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containers/db_cleanup/cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const pg = require('knex')({
pool: {min: 0, max: parseInt(process.env.DB_MAX_POOL)}
});

const retentionIntervalMonths = /* Math.abs(parseInt(process.env.RENTENTION_MONTHS)) */ 7;
const retentionIntervalMonths = Math.abs(parseInt(process.env.RENTENTION_MONTHS));
const now = dayjs();
const retainUntil = now.subtract(retentionIntervalMonths, 'month');
const fileTimeString = `${now.toDate()}-${now.hour().toPrecision(2)}:${now.minute().toPrecision(2)}:${now.second().toPrecision(2)}`;
Expand Down

0 comments on commit 6cde014

Please sign in to comment.