repair get notification error detail
This commit is contained in:
@@ -41,7 +41,16 @@ const InsertNotificationErrorDb = async () => {
|
||||
await pool.query(insertQuery);
|
||||
};
|
||||
|
||||
|
||||
const getNotificationByIdDb = async (id) => {
|
||||
const queryText = `
|
||||
SELECT
|
||||
a.*
|
||||
FROM notification_error a
|
||||
WHERE a.notification_error_id = $1 AND a.deleted_at IS NULL
|
||||
`;
|
||||
const result = await pool.query(queryText, [id]);
|
||||
return result.recordset[0];
|
||||
};
|
||||
|
||||
const getAllNotificationDb = async (searchParams = {}) => {
|
||||
let queryParams = [];
|
||||
@@ -145,5 +154,6 @@ const getAllNotificationDb = async (searchParams = {}) => {
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
getNotificationByIdDb,
|
||||
getAllNotificationDb,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user