[Bugfix] Goals: Database entry (#2281)

* fix database insertion

* dbMonth format

* release note
This commit is contained in:
shall0pass
2024-01-24 14:51:38 -06:00
committed by GitHub
parent 317e7f135e
commit b937bfae04
2 changed files with 9 additions and 1 deletions

View File

@@ -127,7 +127,9 @@ export function setGoal({ month, category, goal }): Promise<void> {
});
}
return db.insert(table, {
id: month,
id: `${dbMonth(month)}-${category}`,
month: dbMonth(month),
category,
goal,
});
}

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [shall0pass]
---
Fix database entry when applying goal templates