devshort

private self-hosted shortlink service
git clone https://git.clttr.info/devshort.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit d3c13e98a9028ca4db9465e8375d5ce33efcb816
parent e366fa2da0714a7c095c7981cf1079c9e743ce5d
Author: Florian <flokx@users.noreply.github.com>
Date:   Sat, 25 Jan 2020 10:35:49 +0100

Fix access counters

Diffstat:
Massets/main.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/assets/main.js b/assets/main.js @@ -33,6 +33,7 @@ Vue.component('chart', { methods: { render: function () { let dataset = []; + this.accessCount = { sevenDays: 0, total: 0 }; for (let [isoDate, count] of Object.entries(this.stats)) { let date = new Date(isoDate); if (((currentDate - date) / (60 * 60 * 24 * 1000)) <= 7) {