mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-08 02:37:44 +02:00
8 lines
322 B
TypeScript
8 lines
322 B
TypeScript
import type { Action } from '@hcengineering/view'
|
|
import view from '@hcengineering/view'
|
|
import { Client, DocumentQuery } from '@hcengineering/core'
|
|
|
|
export const getCardActions = async (client: Client, query?: DocumentQuery<Action>): Promise<Action[]> => {
|
|
return await client.findAll(view.class.Action, query ?? {})
|
|
}
|