Skip to content

Commit

Permalink
Expire tracking after 30ish days (#1744)
Browse files Browse the repository at this point in the history
* We really don't need to keep this info around forever.
* Indicate in nomenclature

Applies to #1730

Auto-merge
  • Loading branch information
Martii authored Aug 25, 2020
1 parent 0c152ba commit 6c1036b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var syncSchema = new Schema({
target: String, // Fully Qualified URL target (should be encodeURIComponent already)
response: Number, // HTTP Status Code
message: String, // Any message crafted or static
created: Date,
created: { type: Date, expires: 60 * 60 * 24 * 30 },
updated: Date,

// Extra info
Expand Down
2 changes: 1 addition & 1 deletion views/includes/syncList.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{{^syncList}}
<tr class="tr-link">
<td colspan="7">
<em>This user hasn't had any tracked syncs yet.</em>
<em>This user hasn't had any recently tracked syncs.</em>
</td>
</tr>
{{/syncList}}
Expand Down

0 comments on commit 6c1036b

Please sign in to comment.