1
0
Fork 0
mirror of synced 2024-07-07 07:15:43 +12:00

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 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 },
}) })

View file

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

View file

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