@budibase/server 2.6.26 → 2.6.27

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.6.26",
4
+ "version": "2.6.27",
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.6.26",
50
- "@budibase/client": "2.6.26",
51
- "@budibase/pro": "2.6.26",
52
- "@budibase/shared-core": "2.6.26",
53
- "@budibase/string-templates": "2.6.26",
54
- "@budibase/types": "2.6.26",
49
+ "@budibase/backend-core": "2.6.27",
50
+ "@budibase/client": "2.6.27",
51
+ "@budibase/pro": "2.6.27",
52
+ "@budibase/shared-core": "2.6.27",
53
+ "@budibase/string-templates": "2.6.27",
54
+ "@budibase/types": "2.6.27",
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": "2238caf69f9695a8d5a9e5ef18b30a6d630ea0bb"
198
+ "gitHead": "a6e4498a1ebbacdba2267565df26540184240ff3"
199
199
  }
@@ -1,6 +1,6 @@
1
1
  import authorized from "../middleware/authorized"
2
2
  import { BaseSocket } from "./websocket"
3
- import { permissions } from "@budibase/backend-core"
3
+ import { permissions, events } from "@budibase/backend-core"
4
4
  import http from "http"
5
5
  import Koa from "koa"
6
6
  import { Datasource, Table, SocketSession, ContextUser } from "@budibase/types"
@@ -22,6 +22,9 @@ export default class BuilderSocket extends BaseSocket {
22
22
  // Reply with all users in current room
23
23
  const sessions = await this.getRoomSessions(appId)
24
24
  callback({ users: sessions })
25
+
26
+ // Track usage
27
+ await events.user.dataCollaboration(sessions.length)
25
28
  })
26
29
  }
27
30