parent
bc04b276a5
commit
3e522ceb0a
@ -78,7 +78,7 @@ export class WebSocketHandler {
|
|||||||
|
|
||||||
let stats = {
|
let stats = {
|
||||||
"drinks_finished": (await Job.countDocuments({successful: true})),
|
"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_ingredients": (await Ingredient.countDocuments()),
|
||||||
"count_cocktails": (await Drink.countDocuments())
|
"count_cocktails": (await Drink.countDocuments())
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user