Skip to content

Commit 1b2b89a

Browse files
committed
Polish for v1.2.0
* Map getSharedJottings() note array because note_id is different from id
1 parent 6a79d51 commit 1b2b89a

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

libs/Datastore/requests.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,19 @@ export async function getSharedJottings(abortController = null) {
4545
.authorize()
4646
.makeRequest(abortController);
4747

48+
49+
4850
if (response.data) {
51+
response.data.notes = response.data.notes.map((data) => ({
52+
id: data.note_id,
53+
title: data.title,
54+
user_id: data.recipient_id,
55+
completed: data.completed,
56+
time_updated: data.time_updated,
57+
parent_id: 0,
58+
due_date: data.due_date,
59+
}));
60+
4961
response.data.tasks.forEach((item) => (item.body = unescapeSlashes(item.body)));
5062

5163
return response.data;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": {
55
"name": "Varun Singh"
66
},
7-
"version": "1.1.1",
7+
"version": "1.2.0",
88
"private": true,
99
"scripts": {
1010
"dev": "next dev",

0 commit comments

Comments
 (0)