15 lines
410 B
JavaScript
15 lines
410 B
JavaScript
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 });
|
|
}
|
|
|