Decrease simple edit history time to 1 week

This commit is contained in:
Maciej Ziarkowski 2019-11-18 11:21:02 +00:00
parent c84ed10af5
commit 3b35331ead

View File

@ -6,7 +6,7 @@ async function getGlobalEditHistory() {
`SELECT log_id as revision_id, forward_patch, reverse_patch, date_trunc('minute', log_timestamp), username, building_id
FROM logs, users
WHERE logs.user_id = users.user_id
AND log_timestamp >= now() - interval '21 days'
AND log_timestamp >= now() - interval '7 days'
ORDER BY log_timestamp DESC`
);
} catch (error) {