Browse Source

Usage tracking fix.

pull/337/head
Sebastian Stehle 7 years ago
parent
commit
fe317f61eb
  1. 2
      src/Squidex.Infrastructure.MongoDb/UsageTracking/MongoUsageRepository.cs
  2. 2
      src/Squidex/app/features/dashboard/pages/dashboard-page.component.ts

2
src/Squidex.Infrastructure.MongoDb/UsageTracking/MongoUsageRepository.cs

@ -43,7 +43,7 @@ namespace Squidex.Infrastructure.UsageTracking
{ {
var (filter, updateStatement) = CreateOperation(update); var (filter, updateStatement) = CreateOperation(update);
await Collection.UpdateOneAsync(filter, updateStatement); await Collection.UpdateOneAsync(filter, updateStatement, Upsert);
} }
} }

2
src/Squidex/app/features/dashboard/pages/dashboard-page.component.ts

@ -150,7 +150,7 @@ export class DashboardPageComponent implements OnDestroy, OnInit {
backgroundColor: `rgba(${COLORS[0]}, 0.6)`, backgroundColor: `rgba(${COLORS[0]}, 0.6)`,
borderColor: `rgba(${COLORS[0]}, 1)`, borderColor: `rgba(${COLORS[0]}, 1)`,
borderWidth: 1, borderWidth: 1,
data: dtos.map(x => Math.round(10 * (x.size / (1024 * 1024))) / 10) data: dtos.map(x => Math.round(100 * (x.size / (1024 * 1024))) / 100)
} }
] ]
}; };

Loading…
Cancel
Save