@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/server",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.7.30",
4
+ "version": "2.7.32",
5
5
  "description": "Budibase Web Server",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -46,12 +46,12 @@
46
46
  "license": "GPL-3.0",
47
47
  "dependencies": {
48
48
  "@apidevtools/swagger-parser": "10.0.3",
49
- "@budibase/backend-core": "2.7.30",
50
- "@budibase/client": "2.7.30",
51
- "@budibase/pro": "2.7.30",
52
- "@budibase/shared-core": "2.7.30",
53
- "@budibase/string-templates": "2.7.30",
54
- "@budibase/types": "2.7.30",
49
+ "@budibase/backend-core": "2.7.32",
50
+ "@budibase/client": "2.7.32",
51
+ "@budibase/pro": "2.7.32",
52
+ "@budibase/shared-core": "2.7.32",
53
+ "@budibase/string-templates": "2.7.32",
54
+ "@budibase/types": "2.7.32",
55
55
  "@bull-board/api": "3.7.0",
56
56
  "@bull-board/koa": "3.9.4",
57
57
  "@elastic/elasticsearch": "7.10.0",
@@ -195,5 +195,5 @@
195
195
  }
196
196
  }
197
197
  },
198
- "gitHead": "e0eaa71a9ad08d6c43363521d45bd48afe9c2009"
198
+ "gitHead": "10be2164ca1e850a9e230229a560ae3aab997468"
199
199
  }
@@ -26,6 +26,7 @@ import {
26
26
  RelationshipTypes,
27
27
  } from "@budibase/types"
28
28
  import sdk from "../../../sdk"
29
+ import { builderSocket } from "../../../websockets"
29
30
  const { cloneDeep } = require("lodash/fp")
30
31
 
31
32
  async function makeTableRequest(
@@ -318,6 +319,11 @@ export async function save(ctx: UserCtx) {
318
319
  datasource.entities[tableToSave.name] = tableToSave
319
320
  await db.put(datasource)
320
321
 
322
+ // Since tables are stored inside datasources, we need to notify clients
323
+ // that the datasource definition changed
324
+ const updatedDatasource = await db.get(datasource._id)
325
+ builderSocket?.emitDatasourceUpdate(ctx, updatedDatasource)
326
+
321
327
  return tableToSave
322
328
  }
323
329
 
@@ -344,6 +350,11 @@ export async function destroy(ctx: UserCtx) {
344
350
 
345
351
  await db.put(datasource)
346
352
 
353
+ // Since tables are stored inside datasources, we need to notify clients
354
+ // that the datasource definition changed
355
+ const updatedDatasource = await db.get(datasource._id)
356
+ builderSocket?.emitDatasourceUpdate(ctx, updatedDatasource)
357
+
347
358
  return tableToDelete
348
359
  }
349
360