@budibase/server 1.0.185-alpha.5 → 1.0.185
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/builder/assets/{index.8a6f249b.css → index.bb5e3dfd.css} +2 -2
- package/builder/assets/index.fa495674.js +1299 -0
- package/builder/assets/{vendor.9bf2fcb4.js → vendor.5240f480.js} +53 -53
- package/builder/index.html +3 -3
- package/coverage/clover.xml +55 -58
- package/coverage/coverage-final.json +7 -7
- package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
- package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
- package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
- package/coverage/lcov-report/api/controllers/component.js.html +1 -1
- package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
- package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
- package/coverage/lcov-report/api/controllers/index.html +15 -15
- package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
- package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
- package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
- package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
- package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.html +1 -1
- package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/role.js.html +1 -1
- package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
- package/coverage/lcov-report/api/controllers/script.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/templates.js.html +9 -12
- package/coverage/lcov-report/api/controllers/user.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/exporters.js.html +3 -3
- package/coverage/lcov-report/api/controllers/view/index.html +4 -4
- package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
- package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
- package/coverage/lcov-report/api/index.html +1 -1
- package/coverage/lcov-report/api/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
- package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/routes/auth.js.html +1 -1
- package/coverage/lcov-report/api/routes/automation.js.html +1 -1
- package/coverage/lcov-report/api/routes/backup.js.html +1 -1
- package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
- package/coverage/lcov-report/api/routes/component.js.html +1 -1
- package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
- package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
- package/coverage/lcov-report/api/routes/dev.js.html +1 -1
- package/coverage/lcov-report/api/routes/index.html +1 -1
- package/coverage/lcov-report/api/routes/integration.js.html +1 -1
- package/coverage/lcov-report/api/routes/layout.js.html +1 -1
- package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
- package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
- package/coverage/lcov-report/api/routes/permission.js.html +1 -1
- package/coverage/lcov-report/api/routes/query.js.html +1 -1
- package/coverage/lcov-report/api/routes/role.js.html +1 -1
- package/coverage/lcov-report/api/routes/routing.js.html +1 -1
- package/coverage/lcov-report/api/routes/screen.js.html +1 -1
- package/coverage/lcov-report/api/routes/script.js.html +1 -1
- package/coverage/lcov-report/api/routes/table.js.html +1 -1
- package/coverage/lcov-report/api/routes/templates.js.html +1 -1
- package/coverage/lcov-report/api/routes/user.js.html +1 -1
- package/coverage/lcov-report/api/routes/utils/index.html +1 -1
- package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
- package/coverage/lcov-report/api/routes/view.js.html +1 -1
- package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/actions.js.html +1 -1
- package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
- package/coverage/lcov-report/automations/bullboard.js.html +1 -1
- package/coverage/lcov-report/automations/index.html +1 -1
- package/coverage/lcov-report/automations/index.js.html +1 -1
- package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
- package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
- package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
- package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
- package/coverage/lcov-report/automations/steps/index.html +14 -14
- package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
- package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
- package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
- package/coverage/lcov-report/automations/steps/queryRows.js.html +2 -5
- package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +7 -10
- package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
- package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
- package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
- package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/triggers.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/index.js.html +1 -1
- package/coverage/lcov-report/constants/layouts.js.html +1 -1
- package/coverage/lcov-report/constants/screens.js.html +1 -1
- package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
- package/coverage/lcov-report/db/index.html +1 -1
- package/coverage/lcov-report/db/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
- package/coverage/lcov-report/db/newid.js.html +1 -1
- package/coverage/lcov-report/db/utils.js.html +4 -4
- package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
- package/coverage/lcov-report/events/index.html +1 -1
- package/coverage/lcov-report/events/index.js.html +1 -1
- package/coverage/lcov-report/events/utils.js.html +1 -1
- package/coverage/lcov-report/index.html +41 -41
- package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
- package/coverage/lcov-report/integrations/tests/index.html +1 -1
- package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
- package/coverage/lcov-report/middleware/builder.js.html +10 -43
- package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
- package/coverage/lcov-report/middleware/index.html +14 -14
- package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
- package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
- package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
- package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
- package/coverage/lcov-report/middleware/utils.js.html +1 -1
- package/coverage/lcov-report/threads/automation.js.html +1 -1
- package/coverage/lcov-report/threads/index.html +1 -1
- package/coverage/lcov-report/threads/query.js.html +1 -1
- package/coverage/lcov-report/threads/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/budibaseDir.js.html +32 -11
- package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
- package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
- package/coverage/lcov-report/utilities/global.js.html +1 -1
- package/coverage/lcov-report/utilities/index.html +19 -19
- package/coverage/lcov-report/utilities/index.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
- package/coverage/lcov-report/utilities/security.js.html +1 -1
- package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
- package/coverage/lcov-report/utilities/users.js.html +1 -1
- package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
- package/coverage/lcov.info +91 -99
- package/dist/api/controllers/templates.js +1 -2
- package/dist/api/controllers/view/exporters.js +1 -1
- package/dist/automations/steps/queryRows.js +0 -1
- package/dist/automations/steps/sendSmtpEmail.js +0 -1
- package/dist/environment.js +13 -9
- package/dist/middleware/builder.js +2 -9
- package/dist/package.json +5 -5
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utilities/budibaseDir.js +6 -0
- package/dist/utilities/redis.js +1 -1
- package/docker_run.sh +2 -0
- package/package.json +6 -6
- package/scripts/likeCypress.ts +1 -0
- package/src/api/controllers/templates.js +1 -2
- package/src/api/controllers/view/exporters.js +1 -1
- package/src/automations/steps/queryRows.js +0 -1
- package/src/automations/steps/sendSmtpEmail.js +0 -1
- package/src/environment.js +13 -9
- package/src/middleware/builder.js +2 -13
- package/src/utilities/budibaseDir.js +7 -0
- package/src/utilities/redis.js +0 -2
- package/builder/assets/index.304ac7e2.js +0 -1315
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const { join } = require("./centralPath");
|
|
3
|
+
const { homedir } = require("os");
|
|
4
|
+
const env = require("../environment");
|
|
2
5
|
const { budibaseTempDir } = require("@budibase/backend-core/objectStore");
|
|
6
|
+
module.exports.budibaseAppsDir = function () {
|
|
7
|
+
return env.BUDIBASE_DIR || join(homedir(), ".budibase");
|
|
8
|
+
};
|
|
3
9
|
module.exports.budibaseTempDir = budibaseTempDir;
|
package/dist/utilities/redis.js
CHANGED
|
@@ -51,7 +51,7 @@ exports.getAllLocks = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
51
51
|
exports.updateLock = (devAppId, user) => __awaiter(void 0, void 0, void 0, function* () {
|
|
52
52
|
// make sure always global user ID
|
|
53
53
|
const globalId = getGlobalIDFromUserMetadataID(user._id);
|
|
54
|
-
const inputUser = Object.assign(Object.assign({}, user), { userId: globalId, _id: globalId
|
|
54
|
+
const inputUser = Object.assign(Object.assign({}, user), { userId: globalId, _id: globalId });
|
|
55
55
|
yield devAppClient.store(devAppId, inputUser, APP_DEV_LOCK_SECONDS);
|
|
56
56
|
});
|
|
57
57
|
exports.clearLock = (devAppId, user) => __awaiter(void 0, void 0, void 0, function* () {
|
package/docker_run.sh
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "1.0.185
|
|
4
|
+
"version": "1.0.185",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
"license": "GPL-3.0",
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@apidevtools/swagger-parser": "^10.0.3",
|
|
73
|
-
"@budibase/backend-core": "^1.0.185
|
|
74
|
-
"@budibase/client": "^1.0.185
|
|
75
|
-
"@budibase/pro": "1.0.
|
|
76
|
-
"@budibase/string-templates": "^1.0.185
|
|
73
|
+
"@budibase/backend-core": "^1.0.185",
|
|
74
|
+
"@budibase/client": "^1.0.185",
|
|
75
|
+
"@budibase/pro": "1.0.184",
|
|
76
|
+
"@budibase/string-templates": "^1.0.185",
|
|
77
77
|
"@bull-board/api": "^3.7.0",
|
|
78
78
|
"@bull-board/koa": "^3.7.0",
|
|
79
79
|
"@elastic/elasticsearch": "7.10.0",
|
|
@@ -184,5 +184,5 @@
|
|
|
184
184
|
"optionalDependencies": {
|
|
185
185
|
"oracledb": "^5.3.0"
|
|
186
186
|
},
|
|
187
|
-
"gitHead": "
|
|
187
|
+
"gitHead": "9bdb67f67219b1227e4878c4a8751f0548f3ec7d"
|
|
188
188
|
}
|
package/scripts/likeCypress.ts
CHANGED
|
@@ -9,6 +9,7 @@ const SERVER_PORT = "4100"
|
|
|
9
9
|
const WORKER_PORT = "4200"
|
|
10
10
|
|
|
11
11
|
// @ts-ignore
|
|
12
|
+
process.env.BUDIBASE_API_KEY = "6BE826CB-6B30-4AEC-8777-2E90464633DE"
|
|
12
13
|
process.env.NODE_ENV = "cypress"
|
|
13
14
|
process.env.ENABLE_ANALYTICS = "false"
|
|
14
15
|
process.env.JWT_SECRET = "budibase"
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
const fetch = require("node-fetch")
|
|
2
2
|
const { downloadTemplate } = require("../../utilities/fileSystem")
|
|
3
|
-
const env = require("../../environment")
|
|
4
3
|
|
|
5
4
|
// development flag, can be used to test against templates exported locally
|
|
6
5
|
const DEFAULT_TEMPLATES_BUCKET =
|
|
7
6
|
"prod-budi-templates.s3-eu-west-1.amazonaws.com"
|
|
8
7
|
|
|
9
8
|
exports.fetch = async function (ctx) {
|
|
10
|
-
|
|
9
|
+
const { type = "app" } = ctx.query
|
|
11
10
|
let response,
|
|
12
11
|
error = false
|
|
13
12
|
try {
|
package/src/environment.js
CHANGED
|
@@ -43,12 +43,15 @@ module.exports = {
|
|
|
43
43
|
COUCH_DB_URL: process.env.COUCH_DB_URL,
|
|
44
44
|
MINIO_URL: process.env.MINIO_URL,
|
|
45
45
|
WORKER_URL: process.env.WORKER_URL,
|
|
46
|
+
SELF_HOSTED: process.env.SELF_HOSTED,
|
|
46
47
|
AWS_REGION: process.env.AWS_REGION,
|
|
48
|
+
ENABLE_ANALYTICS: process.env.ENABLE_ANALYTICS,
|
|
47
49
|
MINIO_ACCESS_KEY: process.env.MINIO_ACCESS_KEY,
|
|
48
50
|
MINIO_SECRET_KEY: process.env.MINIO_SECRET_KEY,
|
|
49
51
|
REDIS_URL: process.env.REDIS_URL,
|
|
50
52
|
REDIS_PASSWORD: process.env.REDIS_PASSWORD,
|
|
51
53
|
INTERNAL_API_KEY: process.env.INTERNAL_API_KEY,
|
|
54
|
+
MULTI_TENANCY: process.env.MULTI_TENANCY,
|
|
52
55
|
HTTP_MIGRATIONS: process.env.HTTP_MIGRATIONS,
|
|
53
56
|
API_REQ_LIMIT_PER_SEC: process.env.API_REQ_LIMIT_PER_SEC,
|
|
54
57
|
GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID,
|
|
@@ -58,27 +61,28 @@ module.exports = {
|
|
|
58
61
|
JEST_WORKER_ID: process.env.JEST_WORKER_ID,
|
|
59
62
|
BUDIBASE_ENVIRONMENT: process.env.BUDIBASE_ENVIRONMENT,
|
|
60
63
|
DISABLE_ACCOUNT_PORTAL: process.env.DISABLE_ACCOUNT_PORTAL,
|
|
61
|
-
TEMPLATE_REPOSITORY: process.env.TEMPLATE_REPOSITORY || "app",
|
|
62
64
|
DISABLE_AUTO_PROD_APP_SYNC: process.env.DISABLE_AUTO_PROD_APP_SYNC,
|
|
63
65
|
// minor
|
|
64
66
|
SALT_ROUNDS: process.env.SALT_ROUNDS,
|
|
65
67
|
LOGGER: process.env.LOGGER,
|
|
66
68
|
LOG_LEVEL: process.env.LOG_LEVEL,
|
|
69
|
+
AUTOMATION_DIRECTORY: process.env.AUTOMATION_DIRECTORY,
|
|
70
|
+
AUTOMATION_BUCKET: process.env.AUTOMATION_BUCKET,
|
|
67
71
|
AUTOMATION_MAX_ITERATIONS: process.env.AUTOMATION_MAX_ITERATIONS,
|
|
68
72
|
SENDGRID_API_KEY: process.env.SENDGRID_API_KEY,
|
|
69
73
|
DYNAMO_ENDPOINT: process.env.DYNAMO_ENDPOINT,
|
|
70
74
|
POSTHOG_TOKEN: process.env.POSTHOG_TOKEN,
|
|
71
75
|
QUERY_THREAD_TIMEOUT: parseIntSafe(process.env.QUERY_THREAD_TIMEOUT),
|
|
72
|
-
|
|
73
|
-
|
|
76
|
+
// old - to remove
|
|
77
|
+
CLIENT_ID: process.env.CLIENT_ID,
|
|
78
|
+
BUDIBASE_DIR: process.env.BUDIBASE_DIR,
|
|
79
|
+
DEPLOYMENT_DB_URL: process.env.DEPLOYMENT_DB_URL,
|
|
80
|
+
BUDIBASE_API_KEY: process.env.BUDIBASE_API_KEY,
|
|
81
|
+
USERID_API_KEY: process.env.USERID_API_KEY,
|
|
82
|
+
DEPLOYMENT_CREDENTIALS_URL: process.env.DEPLOYMENT_CREDENTIALS_URL,
|
|
74
83
|
ALLOW_DEV_AUTOMATIONS: process.env.ALLOW_DEV_AUTOMATIONS,
|
|
75
84
|
DISABLE_THREADING: process.env.DISABLE_THREADING,
|
|
76
|
-
|
|
77
|
-
MULTI_TENANCY: process.env.MULTI_TENANCY,
|
|
78
|
-
ENABLE_ANALYTICS: process.env.ENABLE_ANALYTICS,
|
|
79
|
-
SELF_HOSTED: process.env.SELF_HOSTED,
|
|
80
|
-
// old
|
|
81
|
-
CLIENT_ID: process.env.CLIENT_ID,
|
|
85
|
+
SQL_MAX_ROWS: process.env.SQL_MAX_ROWS,
|
|
82
86
|
_set(key, value) {
|
|
83
87
|
process.env[key] = value
|
|
84
88
|
module.exports[key] = value
|
|
@@ -6,7 +6,7 @@ const {
|
|
|
6
6
|
setDebounce,
|
|
7
7
|
} = require("../utilities/redis")
|
|
8
8
|
const { doWithDB } = require("@budibase/backend-core/db")
|
|
9
|
-
const { DocumentTypes
|
|
9
|
+
const { DocumentTypes } = require("../db/utils")
|
|
10
10
|
const { PermissionTypes } = require("@budibase/backend-core/permissions")
|
|
11
11
|
const { app: appCache } = require("@budibase/backend-core/cache")
|
|
12
12
|
|
|
@@ -51,9 +51,6 @@ async function updateAppUpdatedAt(ctx) {
|
|
|
51
51
|
await doWithDB(appId, async db => {
|
|
52
52
|
const metadata = await db.get(DocumentTypes.APP_METADATA)
|
|
53
53
|
metadata.updatedAt = new Date().toISOString()
|
|
54
|
-
|
|
55
|
-
metadata.updatedBy = getGlobalIDFromUserMetadataID(ctx.user.userId)
|
|
56
|
-
|
|
57
54
|
const response = await db.put(metadata)
|
|
58
55
|
metadata._rev = response.rev
|
|
59
56
|
await appCache.invalidateAppMetadata(appId, metadata)
|
|
@@ -70,15 +67,7 @@ module.exports = async (ctx, permType) => {
|
|
|
70
67
|
}
|
|
71
68
|
const isBuilderApi = permType === PermissionTypes.BUILDER
|
|
72
69
|
const referer = ctx.headers["referer"]
|
|
73
|
-
|
|
74
|
-
const overviewPath = "/builder/portal/overview/"
|
|
75
|
-
const overviewContext = !referer ? false : referer.includes(overviewPath)
|
|
76
|
-
if (overviewContext) {
|
|
77
|
-
return
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
const hasAppId = !referer ? false : referer.includes(appId)
|
|
81
|
-
const editingApp = referer ? hasAppId : false
|
|
70
|
+
const editingApp = referer ? referer.includes(appId) : false
|
|
82
71
|
// check this is a builder call and editing
|
|
83
72
|
if (!isBuilderApi || !editingApp) {
|
|
84
73
|
return
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
const { join } = require("./centralPath")
|
|
2
|
+
const { homedir } = require("os")
|
|
3
|
+
const env = require("../environment")
|
|
1
4
|
const { budibaseTempDir } = require("@budibase/backend-core/objectStore")
|
|
2
5
|
|
|
6
|
+
module.exports.budibaseAppsDir = function () {
|
|
7
|
+
return env.BUDIBASE_DIR || join(homedir(), ".budibase")
|
|
8
|
+
}
|
|
9
|
+
|
|
3
10
|
module.exports.budibaseTempDir = budibaseTempDir
|
package/src/utilities/redis.js
CHANGED