File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export class Confluence {
68
68
*/
69
69
public async getDocumentInfo ( documentId : number ) : Promise < DocumentInfo > {
70
70
this . _log . debug ( `Getting document information of document ${ documentId } ` )
71
- const documentUrl = `${ this . confluenceUrl } /rest/api/content/${ documentId } ?expand=ancestors`
71
+ const documentUrl = `${ this . confluenceUrl } /rest/api/content/${ documentId } ?expand=ancestors,version `
72
72
const document = await got ( documentUrl , {
73
73
username : this . confluenceUser ,
74
74
password : this . confluencePassword ,
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ export class MockServer {
197
197
198
198
public addDocumentEndpoint ( ) : void {
199
199
this . _scope
200
- . get ( '/rest/api/content/123?expand=ancestors' )
200
+ . get ( '/rest/api/content/123?expand=ancestors,version ' )
201
201
. basicAuth ( {
202
202
user : 'nobody' ,
203
203
pass : 'nothing' ,
@@ -221,7 +221,7 @@ export class MockServer {
221
221
} ,
222
222
title : 'Test' ,
223
223
} )
224
- . get ( '/rest/api/content/234?expand=ancestors' )
224
+ . get ( '/rest/api/content/234?expand=ancestors,version ' )
225
225
. basicAuth ( {
226
226
user : 'nobody' ,
227
227
pass : 'nothing' ,
You can’t perform that action at this time.
0 commit comments