Fix error when mongo collstats not supported

This commit is contained in:
Jacob O'Keeffe 2024-07-10 16:30:19 +01:00
parent 8f0b44ade9
commit 739205c192

View File

@ -33,7 +33,7 @@ class Analyser extends DatabaseAnalyser {
collections: [
...collections.map((x, index) => ({
pureName: x.name,
tableRowCount: stats[index].count,
tableRowCount: stats[index]?.count,
})),
...views.map((x, index) => ({
pureName: x.name,