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