Co-authored-by: Patrick Müller <patrick@mueller-patrick.tech> Reviewed-on: #5 Co-authored-by: Patrick Müller <patrick@plutodev.de> Co-committed-by: Patrick Müller <patrick@plutodev.de>
This commit was merged in pull request #5.
This commit is contained in:
@@ -11,6 +11,10 @@ const pool = mariadb.createPool({
|
||||
connectionLimit: 5
|
||||
});
|
||||
|
||||
/**
|
||||
* Creates a new highlight entry in SQL
|
||||
* @param req_body The request body
|
||||
*/
|
||||
export const createHighlightEntry = async (req_body: any) => {
|
||||
let conn;
|
||||
try {
|
||||
@@ -35,4 +39,4 @@ export const createHighlightEntry = async (req_body: any) => {
|
||||
conn.end();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user