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 {
6868 */
6969 public async getDocumentInfo ( documentId : number ) : Promise < DocumentInfo > {
7070 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 `
7272 const document = await got ( documentUrl , {
7373 username : this . confluenceUser ,
7474 password : this . confluencePassword ,
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ export class MockServer {
197197
198198 public addDocumentEndpoint ( ) : void {
199199 this . _scope
200- . get ( '/rest/api/content/123?expand=ancestors' )
200+ . get ( '/rest/api/content/123?expand=ancestors,version ' )
201201 . basicAuth ( {
202202 user : 'nobody' ,
203203 pass : 'nothing' ,
@@ -221,7 +221,7 @@ export class MockServer {
221221 } ,
222222 title : 'Test' ,
223223 } )
224- . get ( '/rest/api/content/234?expand=ancestors' )
224+ . get ( '/rest/api/content/234?expand=ancestors,version ' )
225225 . basicAuth ( {
226226 user : 'nobody' ,
227227 pass : 'nothing' ,
You can’t perform that action at this time.
0 commit comments