Skip to content

Commit 252c7a2

Browse files
committed
fix: Missing version information on check
1 parent 991ccac commit 252c7a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/api/Confluence.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

test/MockServer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)