Merge pull request #508 from mz8i/feature/499-global-edit-history

Decrease simple edit history time to 1 week
This commit is contained in:
Maciej Ziarkowski 2019-11-18 12:36:29 +00:00 committed by GitHub
commit fe84016e79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {