Add sdk.automation.find
This commit is contained in:
parent
23cf44b242
commit
713500febb
|
@ -99,6 +99,12 @@ export async function get(automationId: string) {
|
|||
return trimUnexpectedObjectFields(result)
|
||||
}
|
||||
|
||||
export async function find(ids: string[]) {
|
||||
const db = getDb()
|
||||
const result = await db.getMultiple<PersistedAutomation>(ids)
|
||||
return result.map(trimUnexpectedObjectFields)
|
||||
}
|
||||
|
||||
export async function create(automation: Automation) {
|
||||
automation = trimUnexpectedObjectFields(automation)
|
||||
const db = getDb()
|
||||
|
|
Loading…
Reference in New Issue