File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -66,17 +66,23 @@ app.http('getUser', {
66
66
console . log ( "Decoded user from token: " , user ) ; // Add logging here
67
67
68
68
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
+ } ) ,
80
86
} ;
81
87
82
88
return queryDatabase ( db , user . oid ) ;
You can’t perform that action at this time.
0 commit comments