diff options
Diffstat (limited to 'src/db.js')
| -rw-r--r-- | src/db.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; }; |
