1
0
Fork 0
mirror of synced 2024-08-18 11:31:28 +12:00

Fix crash when attempting to parse a nullish automation error

This commit is contained in:
Andrew Kingston 2022-08-08 16:44:00 +01:00
parent 802f81f90d
commit 7c96eb3bda

View file

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