-
-
-
+
@@ -34,9 +32,7 @@ import XSuspendUser from "./admin.suspend-user.vue";
import XUnsuspendUser from "./admin.unsuspend-user.vue";
import XVerifyUser from "./admin.verify-user.vue";
import XUnverifyUser from "./admin.unverify-user.vue";
-import XUsersChart from "./admin.users-chart.vue";
-import XNotesChart from "./admin.notes-chart.vue";
-import XDriveChart from "./admin.drive-chart.vue";
+import XChart from "./admin.chart.vue";
export default Vue.extend({
components: {
@@ -45,9 +41,7 @@ export default Vue.extend({
XUnsuspendUser,
XVerifyUser,
XUnverifyUser,
- XUsersChart,
- XNotesChart,
- XDriveChart
+ XChart
},
data() {
return {
diff --git a/src/server/api/endpoints/admin/chart.ts b/src/server/api/endpoints/admin/chart.ts
index 1897879d6..1b88af00b 100644
--- a/src/server/api/endpoints/admin/chart.ts
+++ b/src/server/api/endpoints/admin/chart.ts
@@ -8,7 +8,7 @@ export const meta = {
};
export default (params: any) => new Promise(async (res, rej) => {
- const daysRange = 365;
+ const daysRange = 90;
const hoursRange = 24;
const now = new Date();
@@ -123,7 +123,6 @@ export default (params: any) => new Promise(async (res, rej) => {
}
chart.forEach(x => {
- delete x.date;
delete (x as any).span;
});