Skip to content

Commit 6c1036b

Browse files
authored
Expire tracking after 30ish days (#1744)
* We really don't need to keep this info around forever. * Indicate in nomenclature Applies to #1730 Auto-merge
1 parent 0c152ba commit 6c1036b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/sync.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var syncSchema = new Schema({
1818
target: String, // Fully Qualified URL target (should be encodeURIComponent already)
1919
response: Number, // HTTP Status Code
2020
message: String, // Any message crafted or static
21-
created: Date,
21+
created: { type: Date, expires: 60 * 60 * 24 * 30 },
2222
updated: Date,
2323

2424
// Extra info

views/includes/syncList.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
{{^syncList}}
3636
<tr class="tr-link">
3737
<td colspan="7">
38-
<em>This user hasn't had any tracked syncs yet.</em>
38+
<em>This user hasn't had any recently tracked syncs.</em>
3939
</td>
4040
</tr>
4141
{{/syncList}}

0 commit comments

Comments
 (0)