Skip to content

Commit

Permalink
Increase retention period to 96 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
cbranch committed Oct 21, 2021
1 parent 31b57cf commit a513174
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/api/controllers/ReportController.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
return res.notFound()
}

if (report.updatedAt < (Date.now() - (1000*60*60*30))) {
if (report.updatedAt < (Date.now() - (1000*60*60*96))) {
return res.notFound()
}

Expand Down
2 changes: 1 addition & 1 deletion backend/config/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

function setUpdatedAtMinimumTime(criteria) {
const threshold = Date.now() - (1000*60*60*30);
const threshold = Date.now() - (1000*60*60*96);
const query = {'>=': threshold};
if ('updatedAt' in criteria.where) {
criteria.where.and = [
Expand Down
2 changes: 1 addition & 1 deletion backoffice-frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default {
} else if (jwRes.statusCode == 200) {
this.$store.commit('logIn', resData)
var threshold = Date.now() - (1000*60*60*30)
var threshold = Date.now() - (1000*60*60*96)
this.$io.socket.get('/api/v1/report', {limit: 10000, where: {updatedAt: {">": threshold}}}, (resData, jwRes) => {
if (jwRes.statusCode != 200) {
return
Expand Down

0 comments on commit a513174

Please sign in to comment.