Untitled
unknown
plain_text
a year ago
363 B
5
Indexable
const insertNewSale = async () => { const timeAdded = new Date(); const newSale = await salesModel.insertNewSale(timeAdded); return newSale; }; const insertProductIntoSale = async (newSale) => { const addNewSale = await insertNewSale(); const { insertId } = addNewSale; await salesModel.insertProductIntoSale(insertId, newSale); return insertId; };
Editor is loading...
Leave a Comment