File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2074,6 +2074,10 @@ describe('Note API', () => {
20742074 createdAt : history . createdAt ,
20752075 content : history . content ,
20762076 tools : history . tools ,
2077+ user : {
2078+ name : creator . name ,
2079+ photo : creator . photo ,
2080+ } ,
20772081 } ,
20782082 } ) ;
20792083 }
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export const HistotyRecordShema = {
1010 'userId' ,
1111 'createdAt' ,
1212 'tools' ,
13+ 'user' ,
1314 ] ,
1415 properties : {
1516 id : {
@@ -29,6 +30,19 @@ export const HistotyRecordShema = {
2930 type : 'string' ,
3031 format : 'date-time' ,
3132 } ,
33+ user : {
34+ type : 'object' ,
35+ properties : {
36+ name : {
37+ description : 'name of the user' ,
38+ type : 'string' ,
39+ } ,
40+ photo : {
41+ description : 'photo of the user' ,
42+ type : 'string' ,
43+ } ,
44+ } ,
45+ } ,
3246 content : {
3347 description : 'content of certain version of the note' ,
3448 type : 'object' ,
@@ -69,6 +83,7 @@ export const HistoryMetaSchema = {
6983 'id' ,
7084 'userId' ,
7185 'createdAt' ,
86+ 'user' ,
7287 ] ,
7388 properties : {
7489 id : {
You can’t perform that action at this time.
0 commit comments