From 55b051b68ef1efd1f1271c913f20073207239ef4 Mon Sep 17 00:00:00 2001 From: Evgeni Margolis <emargolis@google.com> Date: Tue, 31 Jan 2023 18:17:47 -0800 Subject: [PATCH] tmp2 --- .../matter/app/zap-templates/templates/app/helper.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }