Commit 854693aa authored by mfluharty's avatar mfluharty

Use a variable for one week in milliseconds

parent cf27dd31
......@@ -17,9 +17,11 @@ export default {
group: {
query: getGroupTestCoverage,
variables() {
const ONE_WEEK = 7 * 24 * 60 * 60 * 1000; // milliseconds
return {
groupFullPath: this.groupFullPath,
startDate: new Date(Date.now() - 604800000), // one week ago
startDate: new Date(Date.now() - ONE_WEEK),
};
},
result(res) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment