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) {
|
||||
query := `
|
||||
SELECT user_id, first_name, middle_initial, last_name, suffix, email_address,
|
||||
account_type, emp_id, reg, prov, aProv, mun, bgy, is_logged_in,
|
||||
first_logged_in, address, contact_number, device_id, role_id,
|
||||
role_dps, is_deleted, secret_key, is_activated, created_at, updated_at
|
||||
FROM users
|
||||
emp_id, reg, prov, aProv, mun, bgy, is_logged_in,
|
||||
first_logged_in, home_address, contact_number, device_id, role_id, is_deleted, secret_key, is_activated, created_at, updated_at
|
||||
FROM uess_user_management.users
|
||||
WHERE user_id = ? AND is_deleted = 'N'
|
||||
LIMIT 1
|
||||
`
|
||||
@@ -116,7 +115,6 @@ func GetUserByID(userID string) (*models.User, error) {
|
||||
&user.LastName,
|
||||
&user.Suffix,
|
||||
&user.EmailAddress,
|
||||
&user.AccountType,
|
||||
&user.EmpID,
|
||||
&user.Reg,
|
||||
&user.Prov,
|
||||
@@ -125,7 +123,7 @@ func GetUserByID(userID string) (*models.User, error) {
|
||||
&user.Bgy,
|
||||
&user.IsLoggedIn,
|
||||
&user.FirstLoggedIn,
|
||||
&user.Address,
|
||||
&user.HomeAddress,
|
||||
&user.ContactNumber,
|
||||
&user.DeviceID,
|
||||
&user.RoleID,
|
||||
|
||||
Reference in New Issue
Block a user