@budibase/worker 2.0.34-alpha.5 → 2.0.34-alpha.7
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.0.34-alpha.
|
|
4
|
+
"version": "2.0.34-alpha.7",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"author": "Budibase",
|
|
37
37
|
"license": "GPL-3.0",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@budibase/backend-core": "2.0.34-alpha.
|
|
40
|
-
"@budibase/pro": "2.0.34-alpha.
|
|
41
|
-
"@budibase/string-templates": "2.0.34-alpha.
|
|
42
|
-
"@budibase/types": "2.0.34-alpha.
|
|
39
|
+
"@budibase/backend-core": "2.0.34-alpha.7",
|
|
40
|
+
"@budibase/pro": "2.0.34-alpha.6",
|
|
41
|
+
"@budibase/string-templates": "2.0.34-alpha.7",
|
|
42
|
+
"@budibase/types": "2.0.34-alpha.7",
|
|
43
43
|
"@koa/router": "8.0.8",
|
|
44
44
|
"@sentry/node": "6.17.7",
|
|
45
45
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"./scripts/jestSetup.js"
|
|
105
105
|
]
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "899da8117bff87550e52d246e54c00bfe88bd56e"
|
|
108
108
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import env from "../../../environment"
|
|
2
|
+
import { BBContext } from "@budibase/types"
|
|
3
|
+
import { cache } from "@budibase/backend-core"
|
|
4
|
+
|
|
5
|
+
export async function systemRestored(ctx: BBContext) {
|
|
6
|
+
if (!env.SELF_HOSTED) {
|
|
7
|
+
ctx.throw(405, "This operation is not allowed in cloud.")
|
|
8
|
+
}
|
|
9
|
+
await cache.bustCache(cache.CacheKeys.CHECKLIST)
|
|
10
|
+
ctx.body = {
|
|
11
|
+
message: "System prepared after restore.",
|
|
12
|
+
}
|
|
13
|
+
}
|
package/src/api/index.ts
CHANGED
package/src/api/routes/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ import selfRoutes from "./global/self"
|
|
|
13
13
|
import licenseRoutes from "./global/license"
|
|
14
14
|
import migrationRoutes from "./system/migrations"
|
|
15
15
|
import accountRoutes from "./system/accounts"
|
|
16
|
+
import restoreRoutes from "./system/restore"
|
|
16
17
|
|
|
17
18
|
let userGroupRoutes = api.groups
|
|
18
19
|
export const routes = [
|
|
@@ -31,4 +32,5 @@ export const routes = [
|
|
|
31
32
|
userGroupRoutes,
|
|
32
33
|
migrationRoutes,
|
|
33
34
|
accountRoutes,
|
|
35
|
+
restoreRoutes,
|
|
34
36
|
]
|