Bug fix and verb standardization
This commit is contained in:
@@ -11,7 +11,7 @@ const getSearchHistory = async (_req, res) => {
|
||||
conn.end();
|
||||
};
|
||||
|
||||
const addSearchHistoryItem = async (req, res) => {
|
||||
const createSearchHistoryItem = async (req, res) => {
|
||||
const conn = await pool.getConnection();
|
||||
const query = `INSERT INTO trigger_database.searchHistory (prefix, provider, searchTerm) VALUES (${escapeString(req.body.prefix)}, ${escapeString(req.body.provider)}, ${escapeString(req.body.searchTerm)})`;
|
||||
conn
|
||||
@@ -41,6 +41,6 @@ const deleteSearchHistoryItem = async (req, res) => {
|
||||
|
||||
module.exports = {
|
||||
getSearchHistory,
|
||||
addSearchHistoryItem,
|
||||
createSearchHistoryItem,
|
||||
deleteSearchHistoryItem,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user