woocommerce integration, controllers and handlers ready, evolution api simulator ready

This commit is contained in:
Lucas Tettamanti
2026-01-02 16:49:35 -03:00
parent 556c49e53d
commit 303c3daafe
19 changed files with 637 additions and 141 deletions

View File

@@ -0,0 +1,13 @@
import { listConversations } from "../db/repo.js";
export async function handleListConversations({ tenantId, query }) {
const { q = "", status = "", state = "", limit = "50" } = query || {};
return listConversations({
tenant_id: tenantId,
q: String(q || ""),
status: String(status || ""),
state: String(state || ""),
limit: parseInt(limit, 10) || 50,
});
}