badges on the right, evolution api sender

This commit is contained in:
Lucas Tettamanti
2026-01-26 01:21:08 -03:00
parent e85afab3e6
commit 53293ce9b3
13 changed files with 422 additions and 51 deletions

View File

@@ -268,11 +268,11 @@ export const api = {
return fetch(`/takeovers/${id}`).then(r => r.json());
},
async respondTakeover(id, { response, add_alias }) {
async respondTakeover(id, { response, add_alias, cart_items }) {
return fetch(`/takeovers/${id}/respond`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ response, add_alias }),
body: JSON.stringify({ response, add_alias, cart_items }),
}).then(r => r.json());
},