Maintain nodejs v12 support

This commit is contained in:
Daniel committed 2021-07-12 23:30:41 +02:00
1 parent 1a1b4fb0d2
commit 29917fb85a
1 file changed
+2 -2
+2 -2
View File
@@ -70,8 +70,8 @@ class MasterPlugin extends libPlugin.BaseMasterPlugin {
database_size: inventories.map(x => x.length).reduce((a, b) => b - a, 0),
database_entries: inventories.length,
largest_entry: {
name: inventories[0]?.name || "-",
size: inventories[0]?.length || 0,
name: inventories[0] && inventories[0].name || "-",
size: inventories[0] && inventories[0].length || 0,
},
};
}