@budibase/worker 2.5.6-alpha.29 → 2.5.6-alpha.30

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/worker",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.5.6-alpha.29",
4
+ "version": "2.5.6-alpha.30",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -37,10 +37,10 @@
37
37
  "author": "Budibase",
38
38
  "license": "GPL-3.0",
39
39
  "dependencies": {
40
- "@budibase/backend-core": "2.5.6-alpha.29",
41
- "@budibase/pro": "2.5.6-alpha.28",
42
- "@budibase/string-templates": "2.5.6-alpha.29",
43
- "@budibase/types": "2.5.6-alpha.29",
40
+ "@budibase/backend-core": "2.5.6-alpha.30",
41
+ "@budibase/pro": "2.5.6-alpha.29",
42
+ "@budibase/string-templates": "2.5.6-alpha.30",
43
+ "@budibase/types": "2.5.6-alpha.30",
44
44
  "@koa/router": "8.0.8",
45
45
  "@sentry/node": "6.17.7",
46
46
  "@techpass/passport-openidconnect": "0.3.2",
@@ -102,5 +102,5 @@
102
102
  "typescript": "4.7.3",
103
103
  "update-dotenv": "1.1.1"
104
104
  },
105
- "gitHead": "1aa19d07e8a855a7a8c03fd361899ef400294035"
105
+ "gitHead": "07ceb334c7ea3962f7268038653450a7be3a5ca8"
106
106
  }
@@ -1,7 +1,7 @@
1
- import { Account, AccountMetadata } from "@budibase/types"
1
+ import { Account, AccountMetadata, Ctx } from "@budibase/types"
2
2
  import * as accounts from "../../../sdk/accounts"
3
3
 
4
- export const save = async (ctx: any) => {
4
+ export const save = async (ctx: Ctx<Account, AccountMetadata>) => {
5
5
  const account = ctx.request.body as Account
6
6
  let metadata: AccountMetadata = {
7
7
  _id: accounts.metadata.formatAccountMetadataId(account.accountId),