Spaces:
Runtime error
Runtime error
File size: 365 Bytes
4782147 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | "use server";
import { getSession } from "auth/server";
import { workflowRepository } from "lib/db/repository";
export async function selectExecuteAbilityWorkflowsAction() {
const session = await getSession();
if (!session) {
return [];
}
const workflows = await workflowRepository.selectExecuteAbility(
session.user.id,
);
return workflows;
}
|