more code

This commit is contained in:
Smigz 2025-01-17 22:45:33 -05:00
parent 17d664eaeb
commit 6fb88b315a
10 changed files with 130 additions and 14 deletions

View file

@ -103,6 +103,14 @@ async function insertStore(data) {
}
}
async function deleteStore(itemId) {
try {
await pool.query("DELETE FROM store where store_id = $1", [itemId]);
} catch (e) {
return e;
}
}
module.exports = {
insertItem,
getItemById,
@ -113,6 +121,7 @@ module.exports = {
getCategoryId,
getStores,
getStoreId,
deleteStore,
insertStore,
insertCategory,
deleteCategory,