pr comments
This commit is contained in:
parent
0992618956
commit
8a90a1a3e4
|
@ -49,7 +49,6 @@
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
console.log(app.instance._id)
|
|
||||||
await apps.update(app.instance._id, {
|
await apps.update(app.instance._id, {
|
||||||
icon: { name, color },
|
icon: { name, color },
|
||||||
})
|
})
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
let timeRange = null
|
let timeRange = null
|
||||||
let loaded = false
|
let loaded = false
|
||||||
|
|
||||||
$: app = $apps.find(app => app.devId === $store.appId)
|
$: app = $apps.find(app => app.devId === $store.appId?.includes(app.appId))
|
||||||
$: licensePlan = $auth.user?.license?.plan
|
$: licensePlan = $auth.user?.license?.plan
|
||||||
$: page = $pageInfo.page
|
$: page = $pageInfo.page
|
||||||
$: fetchLogs(automationId, status, page, timeRange)
|
$: fetchLogs(automationId, status, page, timeRange)
|
||||||
|
|
|
@ -4,6 +4,8 @@ import env from "../environment"
|
||||||
import { Table, Row, DocumentType, App } from "@budibase/types"
|
import { Table, Row, DocumentType, App } from "@budibase/types"
|
||||||
import { context } from "@budibase/backend-core"
|
import { context } from "@budibase/backend-core"
|
||||||
|
|
||||||
|
const MAX_AUTOMATIONS_ALLOWED = 5
|
||||||
|
|
||||||
class AutomationEmitter {
|
class AutomationEmitter {
|
||||||
chainCount: number
|
chainCount: number
|
||||||
metadata: { automationChainCount: number }
|
metadata: { automationChainCount: number }
|
||||||
|
@ -21,9 +23,9 @@ class AutomationEmitter {
|
||||||
let chainAutomations = appMetadata?.automations?.chainAutomations
|
let chainAutomations = appMetadata?.automations?.chainAutomations
|
||||||
|
|
||||||
if (chainAutomations === true) {
|
if (chainAutomations === true) {
|
||||||
return 5
|
return MAX_AUTOMATIONS_ALLOWED
|
||||||
} else if (chainAutomations === undefined && env.SELF_HOSTED) {
|
} else if (chainAutomations === undefined && env.SELF_HOSTED) {
|
||||||
return 5
|
return MAX_AUTOMATIONS_ALLOWED
|
||||||
} else {
|
} else {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue