Skip to content

Commit c524d3e

Browse files
committed
import common dataset add to_archive param
1 parent 0814ecf commit c524d3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dtable-web-api.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2175,10 +2175,13 @@ class DTableWebAPI {
21752175
return this.req.delete(url);
21762176
}
21772177

2178-
importCommonDataset(datasetId, dst_dtable_uuid) {
2178+
importCommonDataset(datasetId, dst_dtable_uuid, toArchive) {
21792179
let url = this.server + '/api/v2.1/dtable/common-datasets/' + datasetId + '/import/';
21802180
let formData = new FormData();
21812181
formData.append('dst_dtable_uuid', dst_dtable_uuid);
2182+
if (toArchive) {
2183+
formData.append('to_archive', toArchive);
2184+
}
21822185
return this._sendPostRequest(url, formData);
21832186
}
21842187

0 commit comments

Comments
 (0)