@budibase/server 2.7.30 → 2.7.32

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.
package/dist/index.js CHANGED
@@ -36796,6 +36796,7 @@ function isRelationshipSetup(column) {
36796
36796
  return column.foreignKey || column.through;
36797
36797
  }
36798
36798
  async function save15(ctx) {
36799
+ var _a2;
36799
36800
  const inputs = ctx.request.body;
36800
36801
  const renamed = inputs == null ? void 0 : inputs._rename;
36801
36802
  delete inputs.rows;
@@ -36894,9 +36895,12 @@ async function save15(ctx) {
36894
36895
  delete tableToSave._rename;
36895
36896
  datasource2.entities[tableToSave.name] = tableToSave;
36896
36897
  await db2.put(datasource2);
36898
+ const updatedDatasource = await db2.get(datasource2._id);
36899
+ (_a2 = builderSocket) == null ? void 0 : _a2.emitDatasourceUpdate(ctx, updatedDatasource);
36897
36900
  return tableToSave;
36898
36901
  }
36899
36902
  async function destroy14(ctx) {
36903
+ var _a2;
36900
36904
  const tableToDelete = await sdk_default.tables.getTable(
36901
36905
  ctx.params.tableId
36902
36906
  );
@@ -36915,6 +36919,8 @@ async function destroy14(ctx) {
36915
36919
  datasource2.entities = tables;
36916
36920
  }
36917
36921
  await db2.put(datasource2);
36922
+ const updatedDatasource = await db2.get(datasource2._id);
36923
+ (_a2 = builderSocket) == null ? void 0 : _a2.emitDatasourceUpdate(ctx, updatedDatasource);
36918
36924
  return tableToDelete;
36919
36925
  }
36920
36926
  async function bulkImport2(ctx) {
@@ -36943,6 +36949,7 @@ var init_external2 = __esm({
36943
36949
  init_schema();
36944
36950
  init_src();
36945
36951
  init_sdk3();
36952
+ init_websockets();
36946
36953
  ({ cloneDeep: cloneDeep15 } = require("lodash/fp"));
36947
36954
  }
36948
36955
  });