Skip to content

Commit 391c022

Browse files
authored
Fixed minor issues in provisioning service. (#1566)
1 parent 0300155 commit 391c022

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scripts.v3/data.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/services/provisioningService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class ProvisionService {
3737

3838
public async provision(): Promise<void> {
3939
const managementApiUrl = await this.getManagementUrl();
40-
const dataUrl = `/editors/themes/default.json`;
40+
const dataUrl = `/editors/templates/default.json`;
4141

4242
try {
4343
const dataObj = await this.fetchData(dataUrl);
@@ -61,7 +61,7 @@ export class ProvisionService {
6161
{ name: KnownHttpHeaders.Authorization, value: accessToken },
6262
MapiClient.getPortalHeader("provision")
6363
],
64-
body: JSON.stringify({ properties: contentItem })
64+
body: JSON.stringify(contentItem)
6565
};
6666

6767
const response = await this.httpClient.send(request);
File renamed without changes.

webpack.designer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ const designerConfig = {
7474
{ from: `./src/themes/designer/assets/index.html`, to: "index.html" },
7575
{ from: `./src/themes/designer/styles/fonts`, to: "editors/styles/fonts" },
7676
{ from: `./src/libraries`, to: "data" },
77-
{ from: "./src/config.design.json", to: "config.json" }
77+
{ from: "./src/config.design.json", to: "config.json" },
78+
{ from: `./templates/default.json`, to: "editors/templates/default.json" }
7879
]
7980
})
8081
],

0 commit comments

Comments
 (0)