Untitled
unknown
plain_text
2 years ago
231 B
10
Indexable
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