Browse Source

Merge pull request #7165 from Budibase/fix/applications-500

Fix crash when attempting to parse a nullish automation error
master
Martin McKeaveney 4 years ago
committed by GitHub
parent
commit
a79215e5ca
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/server/src/automations/logging/index.ts

3
packages/server/src/automations/logging/index.ts

@ -23,6 +23,9 @@ export async function checkAppMetadata(apps: App[]) {
for (let [key, errors] of Object.entries(metadata.automationErrors)) {
const updated = []
for (let error of errors) {
if (!error) {
continue
}
const startDate = error.split(dbUtils.SEPARATOR)[2]
if (startDate > maxStartDate) {
updated.push(error)

Loading…
Cancel
Save