Fix total db size calculation for inv sync (#598)

This commit is contained in:
Cooldude2606 authored and GitHub committed 2024-02-23 16:53:15 +00:00
1 parent e3abf8ba33
commit a70490648f
1 file changed
+1 -1
+1 -1
View File
@@ -190,7 +190,7 @@ export class ControllerPlugin extends BaseControllerPlugin {
}))
.sort((a, b) => b.length - a.length);
return new msg.DatabaseStatsRequest.Response(
playerDatastore.map(x => x.length).reduce((a, b) => b - a, 0),
playerDatastore.map(x => x.length).reduce((acc, val) => acc + val, 0),
playerDatastore.length,
{
name: playerDatastore[0] && playerDatastore[0].name || "-",