Untitled
Anonymous
Plain Text
01/23/2024 2:24 AM
231 B
22
Indexable
Never
const updateProductName = async (id, name) => {
const [product] = await connection.execute(
'UPDATE products SET name = ? WHERE id = ?',
[name, id],
);
return product;
};
//module.exports = {
updateProductName,
};Editor is loading...
Leave a Comment