diff --git a/src/lib/classes/managers/LocationManager.ts b/src/lib/classes/managers/LocationManager.ts index a85a3fd..edb44f9 100644 --- a/src/lib/classes/managers/LocationManager.ts +++ b/src/lib/classes/managers/LocationManager.ts @@ -49,6 +49,8 @@ class LocationManager { this.users.push(new User(user._id, user.username, user.email, user.createdAt, user.updatedAt, user.lastLogin)); }); + console.log(`Loaded ${users.length} users from database`); + const galaxies = await getAllGalaxies(); for(const galaxy of galaxies) { const galaxyObject: Galaxy = { @@ -93,6 +95,8 @@ class LocationManager { this.galaxies.push(galaxyObject); }; + console.log(`Loaded ${this.galaxies.length} galaxies from database`); + for(const user of this.users) { await user.init(); const userDB = users.find(u => u._id.equals(user.id));