Skip to content
Snippets Groups Projects
Unverified Commit b937bfae authored by shall0pass's avatar shall0pass Committed by GitHub
Browse files

[Bugfix] Goals: Database entry (#2281)

* fix database insertion

* dbMonth format

* release note
parent 317e7f13
No related branches found
No related tags found
No related merge requests found
...@@ -127,7 +127,9 @@ export function setGoal({ month, category, goal }): Promise<void> { ...@@ -127,7 +127,9 @@ export function setGoal({ month, category, goal }): Promise<void> {
}); });
} }
return db.insert(table, { return db.insert(table, {
id: month, id: `${dbMonth(month)}-${category}`,
month: dbMonth(month),
category,
goal, goal,
}); });
} }
......
---
category: Bugfix
authors: [shall0pass]
---
Fix database entry when applying goal templates
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment