el orderData put ahora es order_put, poner en minusculas contact_request

This commit is contained in:
Jaume Solís 2024-04-08 10:46:32 +02:00
parent 6c8cb7c3aa
commit 08dc63177a
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ async function getProducts(dateExpired, postalCode) {
//Procedure for create transactions, do not carry out any manipulation at the bank
async function orderData_put(jsonOrderData) {
const conn = await connect();
const [rows] = await conn.query(`CALL orderData_put(?)`, [jsonOrderData], (err, results) => {
const [rows] = await conn.query(`CALL order_put(?)`, [jsonOrderData], (err, results) => {
if (err) {
console.error(err);
} else {
@ -68,7 +68,7 @@ async function deliveryDate_get(postalCode) {
async function contact_Request(name, phone, email, message) {
const conn = await connect();
const [rows] = await conn.query(`CALL contact_Request("${name}", "${phone}", "${email}", "${message}")`);
const [rows] = await conn.query(`CALL contact_request("${name}", "${phone}", "${email}", "${message}")`);
return rows;
}