summaryrefslogtreecommitdiff
path: root/src/db.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.js')
-rw-r--r--src/db.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/db.js b/src/db.js
index 39fdc29..087686a 100644
--- a/src/db.js
+++ b/src/db.js
@@ -14,4 +14,7 @@ export const saveDB = async (db) => {
export const insertDB = async (note) => {
const db = await getDB();
+ db.notes.push(note);
+ await saveDB(db);
+ return note;
};