Skip to content

Commit

Permalink
fix: Missing version information on check
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed May 9, 2022
1 parent 991ccac commit 252c7a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/api/Confluence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class Confluence {
*/
public async getDocumentInfo(documentId: number): Promise<DocumentInfo> {
this._log.debug(`Getting document information of document ${documentId}`)
const documentUrl = `${this.confluenceUrl}/rest/api/content/${documentId}?expand=ancestors`
const documentUrl = `${this.confluenceUrl}/rest/api/content/${documentId}?expand=ancestors,version`
const document = await got(documentUrl, {
username: this.confluenceUser,
password: this.confluencePassword,
Expand Down
4 changes: 2 additions & 2 deletions test/MockServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class MockServer {

public addDocumentEndpoint(): void {
this._scope
.get('/rest/api/content/123?expand=ancestors')
.get('/rest/api/content/123?expand=ancestors,version')
.basicAuth({
user: 'nobody',
pass: 'nothing',
Expand All @@ -221,7 +221,7 @@ export class MockServer {
},
title: 'Test',
})
.get('/rest/api/content/234?expand=ancestors')
.get('/rest/api/content/234?expand=ancestors,version')
.basicAuth({
user: 'nobody',
pass: 'nothing',
Expand Down

0 comments on commit 252c7a2

Please sign in to comment.