@things-factory/tutorial-ui 10.1.256 → 10.1.257

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -191,8 +191,8 @@ class TutorialDetail extends localize(i18next)(LitElement) {
191
191
 
192
192
  async _saveTutorialRole() {
193
193
  try {
194
- const response = await client.query({
195
- query: gql`
194
+ const response = await client.mutate({
195
+ mutation: gql`
196
196
  mutation {
197
197
  updateRoleTutorial(${gqlBuilder.buildArgs({
198
198
  tutorialId: this.tutorialId,
@@ -234,8 +234,8 @@ class TutorialSettingList extends localize(i18next)(PageView) {
234
234
  async _saveTutorial() {
235
235
  let patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
236
236
  if (patches && patches.length) {
237
- const response = await client.query({
238
- query: gql`
237
+ const response = await client.mutate({
238
+ mutation: gql`
239
239
  mutation {
240
240
  updateMultipleTutorial(${gqlBuilder.buildArgs({
241
241
  patches
@@ -275,8 +275,8 @@ class TutorialSettingList extends localize(i18next)(PageView) {
275
275
  if (result.value) {
276
276
  const ids = this.dataGrist.selected.map(record => record.id)
277
277
  if (ids && ids.length > 0) {
278
- const response = await client.query({
279
- query: gql`
278
+ const response = await client.mutate({
279
+ mutation: gql`
280
280
  mutation {
281
281
  deleteTutorials(${gqlBuilder.buildArgs({ ids })})
282
282
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/tutorial-ui",
3
- "version": "10.1.256",
3
+ "version": "10.1.257",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.ts",
6
6
  "things-factory": true,
@@ -25,12 +25,12 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@operato/layout": "^10.0.0",
28
- "@things-factory/code-base": "^10.1.256",
28
+ "@things-factory/code-base": "^10.1.257",
29
29
  "@things-factory/form-ui": "^10.1.179",
30
- "@things-factory/i18n-base": "^10.1.256",
30
+ "@things-factory/i18n-base": "^10.1.257",
31
31
  "@things-factory/more-base": "^10.1.254",
32
32
  "@things-factory/shell": "^10.1.254",
33
- "@things-factory/tutorial-base": "^10.1.256"
33
+ "@things-factory/tutorial-base": "^10.1.257"
34
34
  },
35
- "gitHead": "2fd641697190ce6e87bcf454a60b2321553e8110"
35
+ "gitHead": "885b594299601ca4936f4f39701d6713273bbf1e"
36
36
  }