We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 124c1ab commit edf5234Copy full SHA for edf5234
app/modules/files.js
@@ -46,6 +46,10 @@ const files = {
46
return bookmarksDb.get('bookmarks').value()
47
},
48
49
+ set (bookmarks) {
50
+ bookmarksDb.get('bookmarks').set(bookmarks).write()
51
+ },
52
+
53
push (payload) {
54
bookmarksDb.get('bookmarks').push(payload).write()
55
app/modules/sync.js
@@ -24,6 +24,7 @@ const sync = {
24
}).then((data) => {
25
if (data.message === 'success') {
26
resolve(data.bookmarks)
27
+ files.bookmarks.set(data.bookmarks)
28
} else if (data.message === 'TOKEN_ERROR' || data.message === 'USER_NOT_FOUND') {
29
reject()
30
} else {
0 commit comments