diff --git a/src-electron/generator/matter/app/zap-templates/templates/app/helper.js b/src-electron/generator/matter/app/zap-templates/templates/app/helper.js index 4a9ea76a1a..18399bed4b 100644 --- a/src-electron/generator/matter/app/zap-templates/templates/app/helper.js +++ b/src-electron/generator/matter/app/zap-templates/templates/app/helper.js @@ -316,8 +316,9 @@ async function chip_endpoint_generated_event_count12() { const { db, sessionId } = this.global; const packageIds = await templateUtil.ensureZclPackageIds(this); - queryEvents.selectAllEvents(db, packageIds).then((events) => return events.length) - + queryEvents.selectAllEvents(db, packageIds).then((events) => { + return events.length + }); return -1 }