feat : onboarding new CIF by giving rights through admin portal.
feat : View the user rights and update in admin portal. chore : Add some template message for OTP
This commit is contained in:
@@ -37,4 +37,11 @@ async function getCustomerDetails(customerNo) {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { validateAdmin, findAdminByUserName,getCustomerDetails };
|
||||
async function getCustomerDetailsFromDB(customerNo) {
|
||||
const result = await db.query('SELECT customer_no,created_at,last_login,is_first_login,ib_access_level,mb_access_level FROM users WHERE customer_no = $1', [
|
||||
customerNo,
|
||||
]);
|
||||
return result.rows[0];
|
||||
}
|
||||
|
||||
module.exports = { validateAdmin, findAdminByUserName, getCustomerDetails,getCustomerDetailsFromDB };
|
||||
|
||||
Reference in New Issue
Block a user