mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-07-16 14:20:37 -04:00
more code
This commit is contained in:
parent
17d664eaeb
commit
6fb88b315a
10 changed files with 130 additions and 14 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue