aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/account
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-12-30 11:41:36 +0100
committerChocobozzz <me@florianbigard.com>2020-12-30 11:41:36 +0100
commit47d8e266f16b91fec7e4a15a8372d50c2909c042 (patch)
tree41902b4ff8dfc73dfd69f064a2e343a34c43ab97 /server/models/account
parenta046453549bf8f2ced083cc8ac414a9cab42dcf5 (diff)
downloadPeerTube-47d8e266f16b91fec7e4a15a8372d50c2909c042.tar.gz
PeerTube-47d8e266f16b91fec7e4a15a8372d50c2909c042.tar.zst
PeerTube-47d8e266f16b91fec7e4a15a8372d50c2909c042.zip
Support activeMonth and activeHalfyear in nodeinfo
Diffstat (limited to 'server/models/account')
-rw-r--r--server/models/account/user.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/models/account/user.ts b/server/models/account/user.ts
index 8e437c3be..11003645c 100644
--- a/server/models/account/user.ts
+++ b/server/models/account/user.ts
@@ -794,12 +794,14 @@ export class UserModel extends Model {
794 const totalDailyActiveUsers = await getActiveUsers(1) 794 const totalDailyActiveUsers = await getActiveUsers(1)
795 const totalWeeklyActiveUsers = await getActiveUsers(7) 795 const totalWeeklyActiveUsers = await getActiveUsers(7)
796 const totalMonthlyActiveUsers = await getActiveUsers(30) 796 const totalMonthlyActiveUsers = await getActiveUsers(30)
797 const totalHalfYearActiveUsers = await getActiveUsers(180)
797 798
798 return { 799 return {
799 totalUsers, 800 totalUsers,
800 totalDailyActiveUsers, 801 totalDailyActiveUsers,
801 totalWeeklyActiveUsers, 802 totalWeeklyActiveUsers,
802 totalMonthlyActiveUsers 803 totalMonthlyActiveUsers,
804 totalHalfYearActiveUsers
803 } 805 }
804 } 806 }
805 807