pr comments

This commit is contained in:
Peter Clement 2024-01-23 10:10:38 +00:00
parent 0992618956
commit 8a90a1a3e4
3 changed files with 5 additions and 4 deletions

View File

@ -49,7 +49,6 @@
return
}
try {
console.log(app.instance._id)
await apps.update(app.instance._id, {
icon: { name, color },
})

View File

@ -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)

View File

@ -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
}