modules/0-ui

This commit is contained in:
Lucas Tettamanti
2026-01-15 22:53:37 -03:00
parent ea62385e3d
commit 98e3d78e3d
17 changed files with 17 additions and 23 deletions

View File

@@ -0,0 +1,14 @@
import { listRuns, getRunById } from "../../2-identity/db/repo.js";
export async function handleListRuns({ tenantId, chat_id = null, limit = "50" }) {
return listRuns({
tenant_id: tenantId,
wa_chat_id: chat_id ? String(chat_id) : null,
limit: parseInt(limit, 10) || 50,
});
}
export async function handleGetRun({ tenantId, run_id }) {
return getRunById({ tenant_id: tenantId, run_id });
}