File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ describe('setDocument', () => {
85
85
await client . setDocument ( {
86
86
documentID : newDocument . documentID ,
87
87
id : newDocument . id , // diagram ID
88
+ projectID : newDocument . projectID ,
88
89
title : "@mermaidchart/sdk E2E test diagram" ,
89
90
code,
90
91
} ) ;
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ export class MermaidChart {
210
210
* @param document The document to update.
211
211
*/
212
212
public async setDocument (
213
- document : Pick < MCDocument , 'id' | 'documentID' > & Partial < MCDocument > ,
213
+ document : Pick < MCDocument , 'id' | 'documentID' | 'projectID' > & Partial < MCDocument > ,
214
214
) {
215
215
const { data} = await this . axios . put < { result : "ok" } | { result : "failed" , error : any } > (
216
216
URLS . rest . documents . pick ( document ) . self ,
You can’t perform that action at this time.
0 commit comments