removed role dps in query and change address to home address in query
This commit is contained in:
@@ -100,10 +100,9 @@ func GetUserAttributes(userID string) (map[string]string, error) {
|
|||||||
func GetUserByID(userID string) (*models.User, error) {
|
func GetUserByID(userID string) (*models.User, error) {
|
||||||
query := `
|
query := `
|
||||||
SELECT user_id, first_name, middle_initial, last_name, suffix, email_address,
|
SELECT user_id, first_name, middle_initial, last_name, suffix, email_address,
|
||||||
account_type, emp_id, reg, prov, aProv, mun, bgy, is_logged_in,
|
emp_id, reg, prov, aProv, mun, bgy, is_logged_in,
|
||||||
first_logged_in, address, contact_number, device_id, role_id,
|
first_logged_in, home_address, contact_number, device_id, role_id, is_deleted, secret_key, is_activated, created_at, updated_at
|
||||||
role_dps, is_deleted, secret_key, is_activated, created_at, updated_at
|
FROM uess_user_management.users
|
||||||
FROM users
|
|
||||||
WHERE user_id = ? AND is_deleted = 'N'
|
WHERE user_id = ? AND is_deleted = 'N'
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
`
|
`
|
||||||
@@ -116,7 +115,6 @@ func GetUserByID(userID string) (*models.User, error) {
|
|||||||
&user.LastName,
|
&user.LastName,
|
||||||
&user.Suffix,
|
&user.Suffix,
|
||||||
&user.EmailAddress,
|
&user.EmailAddress,
|
||||||
&user.AccountType,
|
|
||||||
&user.EmpID,
|
&user.EmpID,
|
||||||
&user.Reg,
|
&user.Reg,
|
||||||
&user.Prov,
|
&user.Prov,
|
||||||
@@ -125,7 +123,7 @@ func GetUserByID(userID string) (*models.User, error) {
|
|||||||
&user.Bgy,
|
&user.Bgy,
|
||||||
&user.IsLoggedIn,
|
&user.IsLoggedIn,
|
||||||
&user.FirstLoggedIn,
|
&user.FirstLoggedIn,
|
||||||
&user.Address,
|
&user.HomeAddress,
|
||||||
&user.ContactNumber,
|
&user.ContactNumber,
|
||||||
&user.DeviceID,
|
&user.DeviceID,
|
||||||
&user.RoleID,
|
&user.RoleID,
|
||||||
|
|||||||
Reference in New Issue
Block a user