Took 7 seconds
This commit is contained in:
Tobias Hopp 2022-12-01 12:22:12 +01:00
parent bc04b276a5
commit 3e522ceb0a

View File

@ -78,7 +78,7 @@ export class WebSocketHandler {
let stats = {
"drinks_finished": (await Job.countDocuments({successful: true})),
"drink_most": counts[0].name,
"drink_most": ( counts.length == 0 ) ? "Keiner" : counts[0].name,
"count_ingredients": (await Ingredient.countDocuments()),
"count_cocktails": (await Drink.countDocuments())
};