pull/54/head
HardiReady 2019-02-17 13:03:35 +01:00
parent 51f9371659
commit 15fb7de1e3
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ const LogBudgetSchema = new Schema(
}, },
item: { item: {
type: String, type: String,
} },
}, },
{ {
collection: 'logBudget', collection: 'logBudget',

View File

@ -429,7 +429,7 @@ const getBudgetEntry = (line, budg, warId, warDate) => {
const budgetRespawnMatch = budgetRespawnNameRegex.exec(line); const budgetRespawnMatch = budgetRespawnNameRegex.exec(line);
if (budgetRespawnMatch && budgetRespawnMatch.length > 1) { if (budgetRespawnMatch && budgetRespawnMatch.length > 1) {
budgetEntry.player = budgetRespawnMatch[1]; budgetEntry.player = budgetRespawnMatch[1];
budgetEntry.item = "Respawn"; budgetEntry.item = 'Respawn';
} else { } else {
const itemNameMatch = budgetItemNameRegex.exec(line); const itemNameMatch = budgetItemNameRegex.exec(line);
const playerNameMatch = budgetPlayerNameRegex.exec(line); const playerNameMatch = budgetPlayerNameRegex.exec(line);