feat: Add find actions by key method to App model

This commit is contained in:
Faruk AYDIN
2024-03-02 16:09:57 +01:00
parent 343fbb282c
commit 48141eb199

View File

@@ -64,6 +64,13 @@ class App {
return trigger?.substeps || [];
}
static async findActionsByKey(key, stripFuncs = false) {
const rawAppData = await getApp(key, stripFuncs);
const appData = appInfoConverter(rawAppData);
return appData?.actions || [];
}
static async checkAppAndAction(appKey, actionKey) {
const app = await this.findOneByKey(appKey);