Skip to content

Commit 8641140

Browse files
committed
return some fake data
1 parent ad3f1fa commit 8641140

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

api/src/functions/getUser.js

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,23 @@ app.http('getUser', {
6666
console.log("Decoded user from token: ", user); // Add logging here
6767

6868
return {
69-
"_id": "0fb02c42-ds-sd-b16f-dfssdfsf",
70-
"family_name": "sdfdfsdfs",
71-
"given_name": "fsdfsdf",
72-
"points": 134,
73-
"record": [
74-
{
75-
"reason": "Test: Attending a CSS Lecture (26/01/23)",
76-
"points": 4,
77-
"date": "2023-01-26T17:51:25.918Z"
78-
},
79-
]
69+
statusCode: 200,
70+
headers: {
71+
"Content-Type": "application/json",
72+
},
73+
body: JSON.stringify({
74+
"_id": "0fb02c42-ds-sd-b16f-dfssdfsf",
75+
"family_name": "sdfdfsdfs",
76+
"given_name": "fsdfsdf",
77+
"points": 134,
78+
"record": [
79+
{
80+
"reason": "Test: Attending a CSS Lecture (26/01/23)",
81+
"points": 4,
82+
"date": "2023-01-26T17:51:25.918Z"
83+
},
84+
]
85+
}),
8086
};
8187

8288
return queryDatabase(db, user.oid);

0 commit comments

Comments
 (0)